Documentation

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
category

Pop

author

Nick Sagona, III nick@popphp.org

copyright

Copyright (c) 2009-2026 Nick Sagona, III

license

https://www.popphp.org/license New BSD License

version
6.0.0

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

Return values
AttributeGenerator

        
On this page

Search results