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