interface ReflectionPropertyFactoryInterface (View source)

deprecated Use ReflectionService and ReflectionData

An interface to create ReflectionProperty with certain capabilities.

Constants

MODE_AUTO

MODE_READ

Ensure ReflectionProperty will be able to return the property value

MODE_WRITE

Ensure ReflectionProperty will be able to set property value

MODE_RW

Ensure ReflectionProperty will have full access to the property.

Methods

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

No description

Details

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