PropertyInfoLoader
in package
implements
LoaderInterface
Uses
AutoMappingTrait
FinalYes
Guesses and loads the appropriate constraints using PropertyInfo.
Tags
Table of Contents
Interfaces
- LoaderInterface
- Loads validation metadata into {@link ClassMetadata} instances.
Properties
- $accessExtractor : mixed
- $classValidatorRegexp : string|null
- $listExtractor : mixed
- $typeExtractor : mixed
Methods
- __construct() : mixed
- loadClassMetadata() : bool
- Loads validation metadata into a {@link ClassMetadata} instance.
- getTypeConstraint() : Type
- handleAllConstraint() : mixed
- isAutoMappingEnabledForClass() : bool
Properties
$accessExtractor
private
mixed
$accessExtractor
$classValidatorRegexp
private
string|null
$classValidatorRegexp
$listExtractor
private
mixed
$listExtractor
$typeExtractor
private
mixed
$typeExtractor
Methods
__construct()
public
__construct(PropertyListExtractorInterface $listExtractor, PropertyTypeExtractorInterface $typeExtractor, PropertyAccessExtractorInterface $accessExtractor[, string $classValidatorRegexp = null ]) : mixed
Parameters
- $listExtractor : PropertyListExtractorInterface
- $typeExtractor : PropertyTypeExtractorInterface
- $accessExtractor : PropertyAccessExtractorInterface
- $classValidatorRegexp : string = null
loadClassMetadata()
Loads validation metadata into a {@link ClassMetadata} instance.
public
loadClassMetadata(ClassMetadata $metadata) : bool
Parameters
- $metadata : ClassMetadata
Return values
boolgetTypeConstraint()
private
getTypeConstraint(string $builtinType, Type $type) : Type
Parameters
- $builtinType : string
- $type : Type
Return values
TypehandleAllConstraint()
private
handleAllConstraint(string $property, All|null $allConstraint, Type $propertyInfoType, ClassMetadata $metadata) : mixed
Parameters
- $property : string
- $allConstraint : All|null
- $propertyInfoType : Type
- $metadata : ClassMetadata
isAutoMappingEnabledForClass()
private
isAutoMappingEnabledForClass(ClassMetadata $metadata[, string $classValidatorRegexp = null ]) : bool
Parameters
- $metadata : ClassMetadata
- $classValidatorRegexp : string = null