| Conditions | 5 |
| Paths | 3 |
| Total Lines | 27 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 13 |
| CRAP Score | 5 |
| Changes | 0 | ||
| 1 | <?php |
||
| 54 | 504 | protected function doVisitObjectProperty( |
|
| 55 | $data, |
||
| 56 | $name, |
||
| 57 | PropertyMetadataInterface $property, |
||
| 58 | ContextInterface $context |
||
| 59 | ) { |
||
| 60 | 504 | if (!$property->isReadable()) { |
|
| 61 | 24 | return false; |
|
| 62 | } |
||
| 63 | |||
| 64 | 504 | $result = $this->navigator->navigate( |
|
| 65 | 504 | $this->accessor->getValue( |
|
| 66 | 504 | $data, |
|
| 67 | 504 | $property->hasAccessor() ? $property->getAccessor() : $property->getName() |
|
| 68 | ), |
||
| 69 | 378 | $context, |
|
| 70 | 504 | $property->getType() |
|
| 71 | ); |
||
| 72 | |||
| 73 | 504 | if ($result === null && $context->isNullIgnored()) { |
|
| 74 | 24 | return false; |
|
| 75 | } |
||
| 76 | |||
| 77 | 492 | $this->result[$name] = $result; |
|
| 78 | |||
| 79 | 492 | return true; |
|
| 80 | } |
||
| 81 | |||
| 90 |