DataPropertyFactory
class DataPropertyFactory
Methods
Create a new data property factory.
Build an immutable property definition.
Resolve the fixed construction operation for a property declaration.
Resolve the fixed transformation operation for a property declaration.
Find the declared types accepted by a base class.
Select configured extensions that apply to a property type.
Details
at line 41
__construct(DataTypeFactory $typeFactory, DataConfig $config, NameMapperResolver $nameMapperResolver)
Create a new data property factory.
at line 55
DataProperty
build(ReflectionProperty $reflectionProperty, ReflectionClass $reflectionClass, DataParameter|null $constructorParameter = null, NameMapper|null $classInputNameMapper = null, NameMapper|null $classOutputNameMapper = null, array $classDefinedDataIterableAnnotations = [], ReflectionAttribute|null $classAutoLazy = null)
Build an immutable property definition.
at line 164
protected array
resolveConstructionOperation(DataPropertyType $type, bool $computed)
Resolve the fixed construction operation for a property declaration.
Classification stops at the first conversion family present, matching the general engine's priority. Copy delegates ambiguous or custom conversion to that engine.
at line 212
protected DataPropertyOperation|null
resolveTransformationOperation(DataPropertyType $type)
Resolve the fixed transformation operation for a property declaration.
at line 261
protected array
acceptedTypes(DataPropertyType $type, string $baseType)
Find the declared types accepted by a base class.
at line 284
protected array
applicableExtensions(DataPropertyType $type, array $extensions)
Select configured extensions that apply to a property type.