| @@ 195-201 (lines=7) @@ | ||
| 192 | * @param object $object |
|
| 193 | * @param mixed $value |
|
| 194 | */ |
|
| 195 | protected function _setProtectedPropertyFromObjectToValue($property, $object, $value) |
|
| 196 | { |
|
| 197 | $r = new ReflectionClass($object); |
|
| 198 | $p = $r->getProperty($property); |
|
| 199 | $p->setAccessible(true); |
|
| 200 | $p->setValue($object, $value); |
|
| 201 | } |
|
| 202 | ||
| 203 | /** |
|
| 204 | * @param string $property |
|
| @@ 209-215 (lines=7) @@ | ||
| 206 | * |
|
| 207 | * @return mixed |
|
| 208 | */ |
|
| 209 | protected function _getProtectedPropertyFromObject($property, $object) |
|
| 210 | { |
|
| 211 | $r = new ReflectionClass($object); |
|
| 212 | $p = $r->getProperty($property); |
|
| 213 | $p->setAccessible(true); |
|
| 214 | ||
| 215 | return $p->getValue($object); |
|
| 216 | } |
|
| 217 | ||
| 218 | /** |
|