| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | protected function getPropertyValue($object, $propertyName) |
||
| 29 | { |
||
| 30 | if (ObjectAccess::isPropertyGettable($object, $propertyName)) { |
||
| 31 | return Core::get()->getObjectService()->getObjectProperty($object, $propertyName); |
||
| 32 | } else { |
||
| 33 | return ObjectAccess::getProperty($object, $propertyName, true); |
||
| 34 | } |
||
| 35 | } |
||
| 36 | } |
||
| 37 |