| @@ 120-130 (lines=11) @@ | ||
| 117 | * @param string $propertyPath |
|
| 118 | * @return string |
|
| 119 | */ |
|
| 120 | protected function resolveSubVariableReferences($subject, $propertyPath) |
|
| 121 | { |
|
| 122 | if (strpos($propertyPath, '{') !== false) { |
|
| 123 | preg_match_all('/(\{.*\})/', $propertyPath, $matches); |
|
| 124 | foreach ($matches[1] as $match) { |
|
| 125 | $subPropertyPath = substr($match, 1, -1); |
|
| 126 | $propertyPath = str_replace($match, $this->getByPath($subject, $subPropertyPath), $propertyPath); |
|
| 127 | } |
|
| 128 | } |
|
| 129 | return $propertyPath; |
|
| 130 | } |
|
| 131 | ||
| 132 | /** |
|
| 133 | * Extracts a single value from an array or object. |
|
| @@ 263-273 (lines=11) @@ | ||
| 260 | * @param string $propertyPath |
|
| 261 | * @return string |
|
| 262 | */ |
|
| 263 | protected function resolveSubVariableReferences($propertyPath) |
|
| 264 | { |
|
| 265 | if (strpos($propertyPath, '{') !== false) { |
|
| 266 | preg_match_all('/(\{.*\})/', $propertyPath, $matches); |
|
| 267 | foreach ($matches[1] as $match) { |
|
| 268 | $subPropertyPath = substr($match, 1, -1); |
|
| 269 | $propertyPath = str_replace($match, $this->getByPath($subPropertyPath), $propertyPath); |
|
| 270 | } |
|
| 271 | } |
|
| 272 | return $propertyPath; |
|
| 273 | } |
|
| 274 | ||
| 275 | /** |
|
| 276 | * Extracts a single value from an array or object. |
|