Elements
Read onlyYes
FinalYes
Methods
- field() : array<int, mixed>
- flatten() : array<int, mixed>
- shape() : array<int, array<string|int, mixed>|null>
- withField() : array<int, array<string|int, mixed>|null>
Methods
field()
public
field(array<int, array<string|int, mixed>|null> $structures, int|string $name) : array<int, mixed>
Parameters
- $structures : array<int, array<string|int, mixed>|null>
- $name : int|string
Return values
array<int, mixed> —the element of every structure that has it
flatten()
public
flatten(array<int, array<string|int, mixed>|null> $containers) : array<int, mixed>
Parameters
- $containers : array<int, array<string|int, mixed>|null>
Return values
array<int, mixed> —every element of every non-null container, in order
shape()
public
shape(array<int, mixed> $flat, array<int, array<string|int, mixed>|null> $containers) : array<int, array<string|int, mixed>|null>
Parameters
- $flat : array<int, mixed>
- $containers : array<int, array<string|int, mixed>|null>
Return values
array<int, array<string|int, mixed>|null> —$flat cut back into the containers' shapes, keys kept, null stays null
withField()
public
withField(array<int, array<string|int, mixed>|null> $structures, int|string $name, array<int, mixed> $values) : array<int, array<string|int, mixed>|null>
Parameters
- $structures : array<int, array<string|int, mixed>|null>
- $name : int|string
- $values : array<int, mixed>
-
field() rendered