DataMethod
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.
DataMethodMatch|null
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.
at line 32
DataMethodMatch|null
matchPayloads(CreationContext $context, mixed ...$payloads)
Match creation payloads to this method's parameters.
at line 167
bool
returns(string $type)
Determine if the method can return the requested type.