class DataAttributesCollectionFactory

Methods

buildFromReflectionClass(ReflectionClass $reflectionClass)

Build the attribute recipes for a class and its data parents.

buildFromReflectionProperty(ReflectionProperty $reflectionProperty)

Build the attribute recipes for a property.

buildFromReflectionParameter(ReflectionParameter $reflectionParameter)

Build the attribute recipes for a parameter.

static ReflectionClass|null
findParentReflectionClass(ReflectionClass $reflectionClass)

Find the next parent whose attributes belong to the data declaration.

static array
mapAttributesIntoGroups(array $reflectionAttributes)

Group attribute recipes by their concrete type, parents, and interfaces.

Details

at line 23
static DataAttributesCollection buildFromReflectionClass(ReflectionClass $reflectionClass)

Build the attribute recipes for a class and its data parents.

Parameters

ReflectionClass $reflectionClass

Return Value

DataAttributesCollection

at line 43
static DataAttributesCollection buildFromReflectionProperty(ReflectionProperty $reflectionProperty)

Build the attribute recipes for a property.

Parameters

ReflectionProperty $reflectionProperty

Return Value

DataAttributesCollection

at line 53
static DataAttributesCollection buildFromReflectionParameter(ReflectionParameter $reflectionParameter)

Build the attribute recipes for a parameter.

Parameters

ReflectionParameter $reflectionParameter

Return Value

DataAttributesCollection

at line 66
static protected ReflectionClass|null findParentReflectionClass(ReflectionClass $reflectionClass)

Find the next parent whose attributes belong to the data declaration.

Parameters

ReflectionClass $reflectionClass

Return Value

ReflectionClass|null

at line 87
static protected array mapAttributesIntoGroups(array $reflectionAttributes)

Group attribute recipes by their concrete type, parents, and interfaces.

Parameters

array $reflectionAttributes

Return Value

array