| Total Complexity | 8 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Coverage | 92.86% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class DeserializationContext extends Context |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var int |
||
| 13 | 5 | */ |
|
| 14 | private $depth = 0; |
||
| 15 | 5 | ||
| 16 | /** |
||
| 17 | * @var bool |
||
| 18 | 1 | */ |
|
| 19 | private $requireAllRequiredProperties = false; |
||
| 20 | 1 | ||
| 21 | public static function create(): self |
||
| 22 | { |
||
| 23 | 6 | return new self(); |
|
| 24 | } |
||
| 25 | 6 | ||
| 26 | public function getDirection(): int |
||
| 27 | { |
||
| 28 | 80 | return GraphNavigatorInterface::DIRECTION_DESERIALIZATION; |
|
| 29 | } |
||
| 30 | 80 | ||
| 31 | 80 | public function getDepth(): int |
|
| 32 | { |
||
| 33 | 77 | return $this->depth; |
|
| 34 | } |
||
| 35 | 77 | ||
| 36 | public function increaseDepth(): void |
||
| 39 | 77 | } |
|
| 40 | 77 | ||
| 41 | public function decreaseDepth(): void |
||
| 48 | } |
||
| 49 | |||
| 50 | public function setRequireAllRequiredProperties(bool $require): self |
||
| 51 | { |
||
| 52 | $this->requireAllRequiredProperties = $require; |
||
| 53 | |||
| 54 | return $this; |
||
| 55 | } |
||
| 56 | |||
| 57 | public function getRequireAllRequiredProperties(): bool |
||
| 60 | } |
||
| 61 | } |
||
| 62 |