| @@ 275-281 (lines=7) @@ | ||
| 272 | * @param string|null $accessor |
|
| 273 | * @return mixed |
|
| 274 | */ |
|
| 275 | protected function extractSingleValue($subject, $propertyName, $accessor = null) |
|
| 276 | { |
|
| 277 | if (!$accessor || !$this->canExtractWithAccessor($subject, $propertyName, $accessor)) { |
|
| 278 | $accessor = $this->detectAccessor($subject, $propertyName); |
|
| 279 | } |
|
| 280 | return $this->extractWithAccessor($subject, $propertyName, $accessor); |
|
| 281 | } |
|
| 282 | ||
| 283 | /** |
|
| 284 | * Returns TRUE if the data type of $subject is potentially compatible |
|
| @@ 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 |
|