@@ 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 |
@@ 283-289 (lines=7) @@ | ||
280 | * @param string|null $accessor |
|
281 | * @return mixed |
|
282 | */ |
|
283 | protected function extractSingleValue($subject, $propertyName, $accessor = null) |
|
284 | { |
|
285 | if (!$accessor || !$this->canExtractWithAccessor($subject, $propertyName, $accessor)) { |
|
286 | $accessor = $this->detectAccessor($subject, $propertyName); |
|
287 | } |
|
288 | return $this->extractWithAccessor($subject, $propertyName, $accessor); |
|
289 | } |
|
290 | ||
291 | /** |
|
292 | * Returns TRUE if the data type of $subject is potentially compatible |