class DataMethodFactory

Methods

__construct(DataParameterFactory $parameterFactory, DataTypeFactory $typeFactory)

Create a new data method factory.

build(ReflectionMethod $reflectionMethod, ReflectionClass $reflectionClass)

Build an immutable method definition.

CustomCreationMethodType
resolveCustomCreationMethodType(ReflectionMethod $method, DataType|null $returnType)

Resolve the method's named creation role.

Details

at line 22
__construct(DataParameterFactory $parameterFactory, DataTypeFactory $typeFactory)

Create a new data method factory.

Parameters

DataParameterFactory $parameterFactory
DataTypeFactory $typeFactory

at line 33
DataMethod build(ReflectionMethod $reflectionMethod, ReflectionClass $reflectionClass)

Build an immutable method definition.

Parameters

ReflectionMethod $reflectionMethod
ReflectionClass $reflectionClass

Return Value

DataMethod

at line 75
protected CustomCreationMethodType resolveCustomCreationMethodType(ReflectionMethod $method, DataType|null $returnType)

Resolve the method's named creation role.

Parameters

ReflectionMethod $method
DataType|null $returnType

Return Value

CustomCreationMethodType