Overview

Namespaces

  • TokenReflection
    • Broker
      • Backend
    • Dummy
    • Exception
    • Invalid
    • Php
    • Stream

Classes

  • Broker
  • ReflectionAnnotation
  • ReflectionBase
  • ReflectionClass
  • ReflectionConstant
  • ReflectionElement
  • ReflectionFile
  • ReflectionFileNamespace
  • ReflectionFunction
  • ReflectionFunctionBase
  • ReflectionMethod
  • ReflectionNamespace
  • ReflectionParameter
  • ReflectionProperty
  • Resolver

Interfaces

  • IReflection
  • IReflectionClass
  • IReflectionConstant
  • IReflectionExtension
  • IReflectionFunction
  • IReflectionFunctionBase
  • IReflectionMethod
  • IReflectionNamespace
  • IReflectionParameter
  • IReflectionProperty
  • Overview
  • Namespace
  • Class
  • Tree
  • Download

Interface IReflectionConstant

Common reflection constant interface.

TokenReflection\IReflectionConstant implements TokenReflection\IReflection

Direct known implementers

TokenReflection\Invalid\ReflectionConstant, TokenReflection\Php\ReflectionConstant, TokenReflection\ReflectionConstant
Namespace: TokenReflection
Located at IReflectionConstant.php
Methods summary
public string
# getShortName( )

Returns the unqualified name (UQN).

Returns the unqualified name (UQN).

Returns

string
public TokenReflection\IReflectionClass
# getDeclaringClass( )

Returns the declaring class reflection.

Returns the declaring class reflection.

Returns

TokenReflection\IReflectionClass
public string
# getDeclaringClassName( )

Returns the declaring class name.

Returns the declaring class name.

Returns

string
public string
# getNamespaceName( )

Returns the namespace name.

Returns the namespace name.

Returns

string
public boolean
# inNamespace( )

Returns if the constant is defined within a namespace.

Returns if the constant is defined within a namespace.

Returns

boolean
public array
# getNamespaceAliases( )

Returns imported namespaces and aliases from the declaring namespace.

Returns imported namespaces and aliases from the declaring namespace.

Returns

array
public string
# getFileName( )

Returns the file name the reflection object is defined in.

Returns the file name the reflection object is defined in.

Returns

string
public integer
# getStartLine( )

Returns the definition start line number in the file.

Returns the definition start line number in the file.

Returns

integer
public integer
# getEndLine( )

Returns the definition end line number in the file.

Returns the definition end line number in the file.

Returns

integer
public string|boolean
# getDocComment( )

Returns the appropriate docblock definition.

Returns the appropriate docblock definition.

Returns

string|boolean
public mixed
# getValue( )

Returns the constant value.

Returns the constant value.

Returns

mixed
public string
# getValueDefinition( )

Returns the part of the source code defining the constant value.

Returns the part of the source code defining the constant value.

Returns

string
public string
# __toString( )

Returns the string representation of the reflection object.

Returns the string representation of the reflection object.

Returns

string
public boolean
# isValid( )

Returns if the constant definition is valid.

Returns if the constant definition is valid.

That means that the source code is valid and the constant name is unique within parsed files.

Returns

boolean
public boolean
# isDeprecated( )

Returns if the constant is deprecated.

Returns if the constant is deprecated.

Returns

boolean
Methods inherited from TokenReflection\IReflection
__get(), __isset(), getBroker(), getName(), getPrettyName(), isInternal(), isTokenized(), isUserDefined()
PHP Token Reflection API documentation generated by ApiGen 2.8.0