ReflectionConstant
class ReflectionConstant implements Reflector (View source)
Properties
| string | $name |
Methods
Constructs a ReflectionConstant
Gets name
Gets namespace name
Gets short name
Gets value
Checks if deprecated
Returns string representation
No description
No description
No description
No description
No description
Details
__construct(string $name)
Constructs a ReflectionConstant
Constructs a new ReflectionConstant object.
string
getName()
Gets name
Gets the name of the constant.
string
getNamespaceName()
Gets namespace name
Gets the namespace name of the constant.
string
getShortName()
Gets short name
Gets the short name of the constant, the part without the namespace.
mixed
getValue()
Gets value
Gets the value of the constant.
bool
isDeprecated()
Checks if deprecated
Checks whether the constant is deprecated.
string
__toString()
Returns string representation
Returns the string representation of the ReflectionConstant object.
string|false
getFileName()
No description
ReflectionExtension|null
getExtension()
No description
string|false
getExtensionName()
No description
array
getAttributes(string|null $name = null, int $flags = 0)
No description
bool
inNamespace()
No description