|
@@ 100-103 (lines=4) @@
|
| 97 |
|
$object = $object->{$segment}; |
| 98 |
|
continue; |
| 99 |
|
} |
| 100 |
|
if (is_object($object) && method_exists($object, '__get') && ! is_null($object->__get($segment))) { |
| 101 |
|
$object = $object->__get($segment); |
| 102 |
|
continue; |
| 103 |
|
} |
| 104 |
|
if (is_object($object) && method_exists($object, 'getAttribute') && ! is_null($object->getAttribute($segment))) { |
| 105 |
|
$object = $object->getAttribute($segment); |
| 106 |
|
continue; |
|
@@ 104-107 (lines=4) @@
|
| 101 |
|
$object = $object->__get($segment); |
| 102 |
|
continue; |
| 103 |
|
} |
| 104 |
|
if (is_object($object) && method_exists($object, 'getAttribute') && ! is_null($object->getAttribute($segment))) { |
| 105 |
|
$object = $object->getAttribute($segment); |
| 106 |
|
continue; |
| 107 |
|
} |
| 108 |
|
if (is_array($object) && array_key_exists($segment, $object)) { |
| 109 |
|
$object = array_get($object, $segment, $default); |
| 110 |
|
continue; |