class DataMethod

Methods

__construct(string $name, array $parameters, bool $isStatic, bool $isPublic, CustomCreationMethodType $customCreationMethodType, DataType|null $returnType, ReflectionMethod $reflection)

Create a new data method definition.

matchPayloads(CreationContext $context, mixed ...$payloads)

Match creation payloads to this method's parameters.

bool
returns(string $type)

Determine if the method can return the requested type.

Details

at line 18
__construct(string $name, array $parameters, bool $isStatic, bool $isPublic, CustomCreationMethodType $customCreationMethodType, DataType|null $returnType, ReflectionMethod $reflection)

Create a new data method definition.

Parameters

string $name
array $parameters
bool $isStatic
bool $isPublic
CustomCreationMethodType $customCreationMethodType
DataType|null $returnType
ReflectionMethod $reflection

at line 32
DataMethodMatch|null matchPayloads(CreationContext $context, mixed ...$payloads)

Match creation payloads to this method's parameters.

Parameters

CreationContext $context
mixed ...$payloads

Return Value

DataMethodMatch|null

at line 167
bool returns(string $type)

Determine if the method can return the requested type.

Parameters

string $type

Return Value

bool