Total Complexity | 2 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
5 | final class SafeNodeFactory extends NodeFactory |
||
6 | { |
||
7 | /** |
||
8 | * @inheritdoc |
||
9 | */ |
||
10 | 64 | protected function createNodeFromArrayValue(?Document $ownerDoc, array $array, int $flags): VectorNode |
|
11 | { |
||
12 | 64 | return $this->createArrayNodeFromPackedArray($array, $ownerDoc, $flags); |
|
13 | } |
||
14 | |||
15 | /** |
||
16 | * @inheritdoc |
||
17 | */ |
||
18 | 64 | protected function createNodeFromObjectValue(?Document $ownerDoc, object $object, int $flags): ?Node |
|
21 | } |
||
22 | } |
||
23 |