Since: 8.4

final class ReflectionConstant implements Reflector (View source)

Properties

string $name

Methods

__construct(string $name)

No description

string
getName()

No description

string
getNamespaceName()

No description

string
getShortName()

No description

mixed
getValue()

No description

bool
isDeprecated()

No description

string
__toString()

Returns the string representation of any Reflection object.

string|false
getFileName()

No description

getExtension()

No description

string|false
getExtensionName()

No description

array
getAttributes(string|null $name = null, int $flags = 0)

No description

Details

__construct(string $name)

No description

Parameters

string $name

string getName()

No description

Return Value

string

string getNamespaceName()

No description

Return Value

string

string getShortName()

No description

Return Value

string

mixed getValue()

No description

Return Value

mixed

bool isDeprecated()

No description

Return Value

bool

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.

Return Value

string

Returns string representation of the object that implements this interface (and/or "__toString" magic method).

string|false getFileName()

Since: 8.5

No description

Return Value

string|false

ReflectionExtension|null getExtension()

Since: 8.5

No description

Return Value

ReflectionExtension|null

string|false getExtensionName()

Since: 8.5

No description

Return Value

string|false

array getAttributes(string|null $name = null, int $flags = 0)

Since: 8.5

No description

Parameters

string|null $name
int $flags

Return Value

array