ReflectionAttribute
class ReflectionAttribute implements Reflector (View source)
The ReflectionAttribute class provides information about an Attribute.
Constants
|
IS_INSTANCEOF
Since: 8.0
|
Indicates that the search for a suitable attribute should not be by
strict comparison, but by the inheritance chain. Used for the argument of flags of the "getAttribute" method. |
Properties
| string | $name |
Methods
Gets attribute name
Returns the target of the attribute as a bit mask format.
Gets the namespace name of the attribute
Gets the short name of the attribute, without the namespace part
Checks if the attribute is defined in a namespace
Returns {true} if the attribute is repeated.
Gets list of passed attribute's arguments.
Creates a new instance of the attribute with passed arguments
No description
Details
string
getName()
Gets attribute name
int
getTarget()
Returns the target of the attribute as a bit mask format.
string
getNamespaceName()
Gets the namespace name of the attribute
string
getShortName()
Gets the short name of the attribute, without the namespace part
bool
inNamespace()
Checks if the attribute is defined in a namespace
bool
isRepeated()
Returns {true} if the attribute is repeated.
array
getArguments()
Gets list of passed attribute's arguments.
object
newInstance()
Creates a new instance of the attribute with passed arguments
string
__toString()
No description