GridHeader
Read onlyYes
FinalYes
Properties
Methods
- __construct() : mixed
- $source is a plain label, never a Path or a SourceFile, so a sampler with no file can supply its own.
- fromArray() : self
-
normalize()
: array{names: list
, source: ?string}
Properties
$names
public
array<string|int, mixed>
$names
$source
public
string|null
$source
Methods
__construct()
$source is a plain label, never a Path or a SourceFile, so a sampler with no file can supply its own.
public
__construct(array<int, string> $names, string|null $source) : mixed
It is null exactly when $names is empty - no listed source resolved a header.
Parameters
- $names : array<int, string>
- $source : string|null
fromArray()
public
static fromArray(array<string|int, mixed> $data) : self
Parameters
- $data : array<string|int, mixed>
-
the shape of normalize()
Return values
selfnormalize()
public
normalize() : array{names: list, source: ?string}