Conditions | 2 |
Paths | 2 |
Total Lines | 5 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
30 | protected function createNodeFromObjectValue(?Document $ownerDoc, object $object, int $flags): ?Node |
||
31 | { |
||
32 | return $object instanceof \JsonSerializable |
||
33 | ? $this->tryCreateNodeFromValue($object->jsonSerialize(), $ownerDoc, $flags) |
||
34 | : $this->createObjectNodeFromPropertyMap($object, $ownerDoc, $flags); |
||
35 | } |
||
37 |