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

Class ReflectionProperty

Tokenized class property reflection.

TokenReflection\ReflectionBase implements TokenReflection\IReflection
Extended by TokenReflection\ReflectionElement
Extended by TokenReflection\ReflectionProperty implements TokenReflection\IReflectionProperty
Namespace: TokenReflection
Located at ReflectionProperty.php
Methods summary
public TokenReflection\ReflectionClass
# getDeclaringClass( )

Returns a reflection of the declaring class.

Returns a reflection of the declaring class.

Returns

TokenReflection\ReflectionClass

Implementation of

TokenReflection\IReflectionProperty::getDeclaringClass()
public string
# getDeclaringClassName( )

Returns the name of the declaring class.

Returns the name of the declaring class.

Returns

string

Implementation of

TokenReflection\IReflectionProperty::getDeclaringClassName()
public mixed
# getDefaultValue( )

Returns the property default value.

Returns the property default value.

Returns

mixed

Implementation of

TokenReflection\IReflectionProperty::getDefaultValue()
public string
# getDefaultValueDefinition( )

Returns the part of the source code defining the property default value.

Returns the part of the source code defining the property default value.

Returns

string

Implementation of

TokenReflection\IReflectionProperty::getDefaultValueDefinition()
public mixed
# getValue( object $object )

Returns the property value for a particular class instance.

Returns the property value for a particular class instance.

Parameters

$object
object
$object

Returns

mixed

Throws

TokenReflection\Exception\RuntimeException
If it is not possible to return the property value.

Implementation of

TokenReflection\IReflectionProperty::getValue()
public boolean
# isDefault( )

Returns if the property was created at compile time.

Returns if the property was created at compile time.

All properties in the source code are.

Returns

boolean

Implementation of

TokenReflection\IReflectionProperty::isDefault()
public integer
# getModifiers( )

Returns property modifiers.

Returns property modifiers.

Returns

integer

Implementation of

TokenReflection\IReflectionProperty::getModifiers()
public boolean
# isPrivate( )

Returns if the property is private.

Returns if the property is private.

Returns

boolean

Implementation of

TokenReflection\IReflectionProperty::isPrivate()
public boolean
# isProtected( )

Returns if the property is protected.

Returns if the property is protected.

Returns

boolean

Implementation of

TokenReflection\IReflectionProperty::isProtected()
public boolean
# isPublic( )

Returns if the property is public.

Returns if the property is public.

Returns

boolean

Implementation of

TokenReflection\IReflectionProperty::isPublic()
public boolean
# isStatic( )

Returns if the poperty is static.

Returns if the poperty is static.

Returns

boolean

Implementation of

TokenReflection\IReflectionProperty::isStatic()
public string
# __toString( )

Returns the string representation of the reflection object.

Returns the string representation of the reflection object.

Returns

string

Implementation of

TokenReflection\IReflectionProperty::__toString()
public static string|null
# export( TokenReflection\Broker $broker, string|object $class, string $property, boolean $return = false )

Exports a reflected object.

Exports a reflected object.

Parameters

$broker
TokenReflection\Broker
$broker Broker instance
$class
string|object
$class Class name or class instance
$property
string
$property Property name
$return
boolean
$return Return the export instead of outputting it

Returns

string|null

Throws

TokenReflection\Exception\RuntimeException
If requested parameter doesn't exist.
public boolean
# isAccessible( )

Returns if the property is set accessible.

Returns if the property is set accessible.

Returns

boolean

Implementation of

TokenReflection\IReflectionProperty::isAccessible()
public
# setAccessible( boolean $accessible )

Sets a property to be accessible or not.

Sets a property to be accessible or not.

Parameters

$accessible
boolean
$accessible If the property should be accessible.

Implementation of

TokenReflection\IReflectionProperty::setAccessible()
public
# setDefaultValue( mixed $value )

Sets the property default value.

Sets the property default value.

Parameters

$value
mixed
$value
public
# setValue( object $object, mixed $value )

Sets value of a property for a particular class instance.

Sets value of a property for a particular class instance.

Parameters

$object
object
$object Class instance
$value
mixed
$value Poperty value

Throws

TokenReflection\Exception\RuntimeException
If it is not possible to set the property value.

Implementation of

TokenReflection\IReflectionProperty::setValue()
public array
# getNamespaceAliases( )

Returns imported namespaces and aliases from the declaring namespace.

Returns imported namespaces and aliases from the declaring namespace.

Returns

array
public TokenReflection\ReflectionProperty
# alias( TokenReflection\ReflectionClass $parent )

Creates a property alias for the given class.

Creates a property alias for the given class.

Parameters

$parent
TokenReflection\ReflectionClass
$parent New parent class

Returns

TokenReflection\ReflectionProperty
public TokenReflection\IReflectionClass|null
# getDeclaringTrait( )

Returns the defining trait.

Returns the defining trait.

Returns

TokenReflection\IReflectionClass|null

Implementation of

TokenReflection\IReflectionProperty::getDeclaringTrait()
public string|null
# getDeclaringTraitName( )

Returns the declaring trait name.

Returns the declaring trait name.

Returns

string|null

Implementation of

TokenReflection\IReflectionProperty::getDeclaringTraitName()
public string
# getPrettyName( )

Returns an element pretty (docblock compatible) name.

Returns an element pretty (docblock compatible) name.

Returns

string

Overrides

TokenReflection\ReflectionBase::getPrettyName()

Implementation of

TokenReflection\IReflection::getPrettyName()
protected TokenReflection\ReflectionElement
# processParent( TokenReflection\IReflection $parent, TokenReflection\Stream\StreamBase $tokenStream )

Processes the parent reflection object.

Processes the parent reflection object.

Parameters

$parent
TokenReflection\IReflection
$parent Parent reflection object
$tokenStream
TokenReflection\Stream\StreamBase
$tokenStream Token substream

Returns

TokenReflection\ReflectionElement

Throws

TokenReflection\Exception\Parse
If an invalid parent reflection object was provided.

Overrides

TokenReflection\ReflectionElement::processParent()
protected TokenReflection\ReflectionProperty
# parse( TokenReflection\Stream\StreamBase $tokenStream, TokenReflection\IReflection $parent )

Parses reflected element metadata from the token stream.

Parses reflected element metadata from the token stream.

Parameters

$tokenStream
TokenReflection\Stream\StreamBase
$tokenStream Token substream
$parent
TokenReflection\IReflection
$parent Parent reflection object

Returns

TokenReflection\ReflectionProperty
protected TokenReflection\ReflectionProperty
# parseName( TokenReflection\Stream\StreamBase $tokenStream )

Parses the property name.

Parses the property name.

Parameters

$tokenStream
TokenReflection\Stream\StreamBase
$tokenStream Token substream

Returns

TokenReflection\ReflectionProperty

Throws

TokenReflection\Exception\ParseException
If the property name could not be determined.
Methods inherited from TokenReflection\ReflectionElement
__construct(), getDocblockTemplates(), getEndLine(), getEndPosition(), getExtension(), getExtensionName(), getFileName(), getFileReflection(), getSource(), getStartLine(), getStartPosition(), parseChildren(), parseDocComment(), parseStream()
Methods inherited from TokenReflection\ReflectionBase
__get(), __isset(), exists(), get(), getAnnotation(), getAnnotations(), getBroker(), getDocComment(), getName(), hasAnnotation(), isDeprecated(), isInternal(), isTokenized(), isUserDefined()
Constants summary
integer ACCESS_LEVEL_CHANGED 0x800
#

Access level of this property has changed from the original implementation.

Access level of this property has changed from the original implementation.

See

http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/Zend/zend_compile.h?revision=306939&view=markup#l134 ZEND_ACC_CHANGED
Constants inherited from TokenReflection\ReflectionElement
DOCBLOCK_TEMPLATE_END, DOCBLOCK_TEMPLATE_START
Properties inherited from TokenReflection\ReflectionElement
$docblockTemplates, $startPosition
Properties inherited from TokenReflection\ReflectionBase
$docComment, $name
PHP Token Reflection API documentation generated by ApiGen 2.8.0