Conditions | 3 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
50 | protected function dehydrateObject($object): \stdClass |
||
51 | { |
||
52 | $node = (object)[]; |
||
53 | /** @var ObjectSchema $objectSchema */ |
||
54 | $objectSchema = $this->schema; |
||
55 | |||
56 | foreach ($object as $name => $value) { |
||
57 | if ($this->shouldFilterOutputValue($objectSchema->getPropertySchema($name), $value)) { |
||
58 | continue; |
||
59 | } else { |
||
60 | $node->$name = $this->dehydrateProperty($name, $value); |
||
61 | } |
||
62 | } |
||
63 | |||
64 | return $node; |
||
65 | } |
||
66 | } |
||
67 |