Methods |
public
static
|
createFromName(string $constantName): self
Create a ReflectionConstant by name, using default reflectors etc.
Create a ReflectionConstant by name, using default reflectors etc.
Deprecated
Throws
|
#
|
public
|
getShortName(): non-empty-string
Get the "short" name of the constant (e.g. for A\B\FOO, this will return
"FOO").
Get the "short" name of the constant (e.g. for A\B\FOO, this will return
"FOO").
|
#
|
public
|
getName(): non-empty-string
Get the "full" name of the constant (e.g. for A\B\FOO, this will return
"A\B\FOO").
Get the "full" name of the constant (e.g. for A\B\FOO, this will return
"A\B\FOO").
Implements
|
#
|
public
|
getNamespaceName(): non-empty-string|null
Get the "namespace" name of the constant (e.g. for A\B\FOO, this will
return "A\B").
Get the "namespace" name of the constant (e.g. for A\B\FOO, this will
return "A\B").
|
#
|
public
|
inNamespace(): bool
Decide if this constant is part of a namespace. Returns false if the constant
is in the global namespace or does not…
Decide if this constant is part of a namespace. Returns false if the constant
is in the global namespace or does not have a specified namespace.
|
#
|
public
|
getExtensionName(): non-empty-string|null
|
#
|
public
|
isInternal(): bool
Is this an internal constant?
Is this an internal constant?
|
#
|
public
|
isUserDefined(): bool
Is this a user-defined function (will always return the opposite of
whatever isInternal returns).
Is this a user-defined function (will always return the opposite of
whatever isInternal returns).
|
#
|
public
|
isDeprecated(): bool
|
#
|
public
|
getValueExpr(): Expr
|
#
|
public
|
getValueExpression(): Expr
|
#
|
public
|
getValue(): mixed
|
#
|
public
|
getFileName(): non-empty-string|null
|
#
|
public
|
getLocatedSource(): LocatedSource
|
#
|
public
|
getStartLine(): positive-int
Get the line number that this constant starts on.
Get the line number that this constant starts on.
|
#
|
public
|
getEndLine(): positive-int
Get the line number that this constant ends on.
Get the line number that this constant ends on.
|
#
|
public
|
getStartColumn(): positive-int
|
#
|
public
|
getEndColumn(): positive-int
|
#
|
public
|
getDocComment(): non-empty-string|null
|
#
|
public
|
__toString(): non-empty-string
|
#
|