| Methods |
public
|
__construct(
ProgressToken $progressToken,
float $progress,
?float $total = null,
?string $message = null,
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 params body. Subclasses override to merge their own fields
alongside the _meta slice returned here.
Serializes the params 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
|
#
|