| Methods |
public
|
__construct(array{values: list<string>, total?: int, hasMore?: bool} $completion, MetaObject $meta = new MetaObject())
|
#
|
public
static
|
fromArray(array<string, mixed> $data): static
Create an instance of the class from an array.
Create an instance of the class from an array.
Implements
|
#
|
public
|
toArray(): array
Serializes the result body. Subclasses override to merge their own fields
alongside the _meta slice returned here.
Serializes the result body. Subclasses override to merge their own fields
alongside the _meta slice returned here.
Overrides
|
#
|
public
|
jsonSerialize(): array
Implementations substitute \stdClass for the empty-object case so
json_encode emits {} rather than [].
Implementations substitute \stdClass for the empty-object case so
json_encode emits {} rather than [].
Overrides
|
#
|