Attribute Class
Namespace:
The Attribute class on PHP Attributes Reader library is a class that helps to access details of a PHP attribute which was fetched through the AttributesReader
PHP Class with Class Attributes
Initialize the Attributes Reader and retrieve an attribute
Refer to Class Attributes , Method Attributes and Property Attributes guides to see how to get attributes from the AttributesReader
.
Available functions in Attribute class
Returns namespace of the Attribute class Caution: if there isn't a specific class with the Attribute name then this won't be a valid class namespace)
Returns name of the attribute.
Returns true
or false
based on availability of arguments of the attribute.
Returns an array of Arguments for the Attribute. Each item on array will be an instance of Argument class
\AntonDPerera\PHPAttributesReader\Argument
Refer Argument class Reference documentation for more details.
Last updated