class ReflectionData implements Reflector (View source)

Methods

__construct($class, $name, ReflectionProperty $reflectionProperty = null, ReflectionMethod $readMethod = null, ReflectionMethod $writeMethod = null)

No description

static 
export($class, $name, $return)

No description

mixed
__get(string $property)

Get read-only properties

__toString()

No description

mixed
__call(string $name, array $args = [])

Transfer call to inner ReflectionProperty object if any.

setReadMethod(ReflectionMethod $method = null)

No description

setWriteMethod(ReflectionMethod $method = null)

No description

getValue($object = null)

No description

setValue($object, $value = null)

No description

boolean
isPublic()

No description

isProtected()

No description

boolean
isPrivate()

No description

boolean
isStatic()

No description

boolean
isDefault()

No description

boolean
isInitialized(object $object = null)

No description

string
getDocComment()

Get documentation of inner ReflectionProperty or fallback to the documentation of the read method.

setAccessible($accessible)

No description

getType()

Get property type or return type of the read method.

boolean
hasType()

Indicates if property has a type

Details

__construct($class, $name, ReflectionProperty $reflectionProperty = null, ReflectionMethod $readMethod = null, ReflectionMethod $writeMethod = null)

Parameters

$class
$name
ReflectionProperty $reflectionProperty
ReflectionMethod $readMethod
ReflectionMethod $writeMethod

static export($class, $name, $return)

Parameters

$class
$name
$return

mixed __get(string $property)

Get read-only properties

Parameters

string $property Property name

Return Value

mixed Property value

Exceptions

RuntimeException

__toString()

mixed __call(string $name, array $args = [])

Transfer call to inner ReflectionProperty object if any.

Parameters

string $name
array $args

Return Value

mixed

Exceptions

RuntimeException

setReadMethod(ReflectionMethod $method = null)

Parameters

ReflectionMethod $method

setWriteMethod(ReflectionMethod $method = null)

Parameters

ReflectionMethod $method

getValue($object = null)

Parameters

$object

setValue($object, $value = null)

Parameters

$object
$value

boolean isPublic()

Return Value

boolean

isProtected()

boolean isPrivate()

Return Value

boolean

boolean isStatic()

Return Value

boolean

boolean isDefault()

Return Value

boolean

boolean isInitialized(object $object = null)

Parameters

object $object Object

Return Value

boolean

string getDocComment()

Get documentation of inner ReflectionProperty or fallback to the documentation of the read method.

Return Value

string

setAccessible($accessible)

Parameters

$accessible

ReflectionType|NULL getType()

Get property type or return type of the read method.

Return Value

ReflectionType|NULL

boolean hasType()

Indicates if property has a type

Return Value

boolean