DataAttributesCollectionFactory
class DataAttributesCollectionFactory
Methods
static DataAttributesCollection
buildFromReflectionClass(ReflectionClass $reflectionClass)
Build the attribute recipes for a class and its data parents.
static DataAttributesCollection
buildFromReflectionProperty(ReflectionProperty $reflectionProperty)
Build the attribute recipes for a property.
static DataAttributesCollection
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.
at line 43
static DataAttributesCollection
buildFromReflectionProperty(ReflectionProperty $reflectionProperty)
Build the attribute recipes for a property.
at line 53
static DataAttributesCollection
buildFromReflectionParameter(ReflectionParameter $reflectionParameter)
Build the attribute recipes for a parameter.
at line 66
static protected ReflectionClass|null
findParentReflectionClass(ReflectionClass $reflectionClass)
Find the next parent whose attributes belong to the data declaration.
at line 87
static protected array
mapAttributesIntoGroups(array $reflectionAttributes)
Group attribute recipes by their concrete type, parents, and interfaces.