| @@ 140-146 (lines=7) @@ | ||
| 137 | * @param string|null $accessor |
|
| 138 | * @return mixed |
|
| 139 | */ |
|
| 140 | protected function extractSingleValue($subject, $propertyName, $accessor = null) |
|
| 141 | { |
|
| 142 | if (!$accessor || !$this->canExtractWithAccessor($subject, $propertyName, $accessor)) { |
|
| 143 | $accessor = $this->detectAccessor($subject, $propertyName); |
|
| 144 | } |
|
| 145 | return $this->extractWithAccessor($subject, $propertyName, $accessor); |
|
| 146 | } |
|
| 147 | ||
| 148 | /** |
|
| 149 | * Returns TRUE if the data type of $subject is potentially compatible |
|
| @@ 339-345 (lines=7) @@ | ||
| 336 | * @param string|null $accessor |
|
| 337 | * @return mixed |
|
| 338 | */ |
|
| 339 | protected function extractSingleValue($subject, $propertyName, $accessor = null) |
|
| 340 | { |
|
| 341 | if (!$accessor || !$this->canExtractWithAccessor($subject, $propertyName, $accessor)) { |
|
| 342 | $accessor = $this->detectAccessor($subject, $propertyName); |
|
| 343 | } |
|
| 344 | return $this->extractWithAccessor($subject, $propertyName, $accessor); |
|
| 345 | } |
|
| 346 | ||
| 347 | /** |
|
| 348 | * Returns TRUE if the data type of $subject is potentially compatible |
|