class ReflectionPropertyFactory implements ReflectionPropertyFactoryInterface (View source)

deprecated Use ReflectionService and ReflectionData

Default ReflectionPropertyFactory implementation taht use basic method name prefix strategy to find getters and setters for a given property.

Methods

setReadMethodNamePrefixes($prefixes, $access = 0)

Set the method name prefixes recognized as getter methods.

setWriteMethodNamePrefixes(string $prefixes)

Set the method name prefixes recognied as a setter method.

createReflectionProperty(string|object $class, unknown $name, integer $mode = self::MODE_AUTO)

No description

Details

setReadMethodNamePrefixes($prefixes, $access = 0)

Set the method name prefixes recognized as getter methods.

Common values are "get" and "is"

Parameters

$prefixes
$access

setWriteMethodNamePrefixes(string $prefixes)

Set the method name prefixes recognied as a setter method.

Common values are "set" and "is".

Parameters

string $prefixes List of prefixes.

ReflectionProperty createReflectionProperty(string|object $class, unknown $name, integer $mode = self::MODE_AUTO)

Parameters

string|object $class Owning class name or object
unknown $name Property name
integer $mode Mandatory access mode.

Return Value

ReflectionProperty