MutationState
in package
MutationState is an object which holds and aggregates mutation tokens across operations.
Table of Contents
- $tokens : array<string|int, mixed>
- __construct() : mixed
- add() : MutationState
- Adds the result of a mutation operation to this mutation state.
- export() : array<string|int, mixed>
- tokens() : array<string|int, mixed>
Properties
$tokens
private
array<string|int, mixed>
$tokens
Methods
__construct()
public
__construct() : mixed
Return values
mixed —add()
Adds the result of a mutation operation to this mutation state.
public
add(MutationResult $source) : MutationState
Parameters
- $source : MutationResult
-
the result object to add to this state
Return values
MutationState —export()
public
export() : array<string|int, mixed>
Return values
array<string|int, mixed> —tokens()
public
tokens() : array<string|int, mixed>