class Rollback extends MutationScaffolder implements OperationResolver (View source)

Scaffolds a "rollback recursive" operation for DataObjects.

rollback[TypeName](ID!, ToVersion!)

Methods

__construct(string $dataObjectClass)

CreateOperationScaffolder constructor.

string
getName()

No description

array
createDefaultArgs(Manager $manager)

No description

mixed
resolve(mixed $object, array $args, mixed $context, ResolveInfo $info)

Invoked by the Executor class to resolve this mutation / query

Details

__construct(string $dataObjectClass)

CreateOperationScaffolder constructor.

Parameters

string $dataObjectClass

string getName()

Return Value

string

array createDefaultArgs(Manager $manager)

Parameters

Manager $manager

Return Value

array

mixed resolve(mixed $object, array $args, mixed $context, ResolveInfo $info)

Invoked by the Executor class to resolve this mutation / query

Parameters

mixed $object
array $args
mixed $context
ResolveInfo $info

Return Value

mixed

See also

Executor