AttributeCollector
in package
Attribute collector class
Builds an AttributeGenerator from a \ReflectionAttribute. Deliberately does not attempt any
use-import wiring for the attribute's own class — only a top-level *Reflection::parse() call has
direct access to the construct's namespace object, so that stays inline in each caller. A caller
that does have that access (and a Reflection\Support\NamespaceImportResolver to go with it, for
same-short-name collision avoidance) can override the computed name via $name.
Tags
Table of Contents
Methods
- build() : AttributeGenerator
- Build an AttributeGenerator from a ReflectionAttribute
Methods
build()
Build an AttributeGenerator from a ReflectionAttribute
public
static build(ReflectionAttribute $reflectionAttribute[, string|null $name = null ]) : AttributeGenerator
Parameters
- $reflectionAttribute : ReflectionAttribute
- $name : string|null = null
-
overrides the short name this would otherwise compute