AnnotationLoader
in package
implements
LoaderInterface
Loads validation metadata using a Doctrine annotation {@link Reader} or using PHP 8 attributes.
Tags
Table of Contents
Interfaces
- LoaderInterface
- Loads validation metadata into {@link ClassMetadata} instances.
Properties
- $reader : mixed
Methods
- __construct() : mixed
- loadClassMetadata() : bool
- Loads validation metadata into a {@link ClassMetadata} instance.
- getAnnotations() : iterable<string|int, mixed>
Properties
$reader
protected
mixed
$reader
Methods
__construct()
public
__construct([Reader $reader = null ]) : mixed
Parameters
- $reader : Reader = null
loadClassMetadata()
Loads validation metadata into a {@link ClassMetadata} instance.
public
loadClassMetadata(ClassMetadata $metadata) : bool
Parameters
- $metadata : ClassMetadata
Return values
boolgetAnnotations()
private
getAnnotations(ReflectionClass|ReflectionMethod|ReflectionProperty $reflection) : iterable<string|int, mixed>
Parameters
- $reflection : ReflectionClass|ReflectionMethod|ReflectionProperty