Map an array
public mapArray ( array $json, mixed $array, string $class = null ) : mixed | ||
$json | array | JSON array structure from json_decode() |
$array | mixed | Array or ArrayObject that gets filled with data from $json |
$class | string | Class name for children objects. All children will get mapped onto this type. Supports class names and simple types like "string" and nullability "string|null". Pass "null" to not convert any values |
Результат | mixed | Mapped $array is returned |