| 1 | <?php |
||
| 12 | class Reflection |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Get private/protected properties from Reflection. |
||
| 16 | * @param string $className |
||
| 17 | * @param string $property |
||
| 18 | * @param object $object |
||
| 19 | * @return mixed |
||
| 20 | */ |
||
| 21 | public static function getProperty($className, $property, $object) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Set private/protected properies and return original object. |
||
| 31 | * @param string $className |
||
| 32 | * @param string $property |
||
| 33 | * @param object $object |
||
| 34 | * @param mixed $value |
||
| 35 | * @return object |
||
| 36 | */ |
||
| 37 | public static function setProperty($className, $property, $object, $value) |
||
| 45 | } |
||
| 46 |