| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 25% |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | final class JsonDeserializationVisitorFactory implements DeserializationVisitorFactory |
||
| 31 | { |
||
| 32 | /** |
||
| 33 | * @var int |
||
| 34 | */ |
||
| 35 | private $options = 0; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @var int |
||
| 39 | */ |
||
| 40 | private $depth = 512; |
||
| 41 | |||
| 42 | 65 | public function getVisitor(): DeserializationVisitorInterface |
|
| 43 | { |
||
| 44 | 65 | return new JsonDeserializationVisitor($this->options, $this->depth); |
|
| 45 | } |
||
| 46 | |||
| 47 | public function setOptions(int $options): self |
||
| 51 | } |
||
| 52 | |||
| 53 | public function setDepth(int $depth): self |
||
| 59 |