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); |
||
32 | private function createNodeFromObject(object $object, ?Document $doc, int $flags): ?Node |
||
33 | { |
||
34 | return $object instanceof \JsonSerializable |
||
35 | ? $this->createNodeFromValue($object->jsonSerialize(), $doc, $flags) |
||
36 | : $this->createObjectNodeFromPropertyMap($object, $doc, $flags); |
||
37 | } |
||
55 |