ReflectionAttribute
class ReflectionAttribute implements Reflector (View source)
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.
Returns {true} if the attribute is repeated.
Gets list of passed attribute's arguments.
Creates a new instance of the attribute with passed arguments
Returns the string representation of any Reflection object.
Details
string
getName()
Gets attribute name
int
getTarget()
Returns the target of the attribute as a bit mask format.
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()
Returns the string representation of any Reflection object.
Please note that since PHP 8.0 this method is absent in this interface and inherits from the {\Stringable} parent.