| Total Complexity | 4 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class Context implements ContextInterface |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var string[] |
||
| 9 | */ |
||
| 10 | private $path = []; |
||
| 11 | /** |
||
| 12 | * @var bool |
||
| 13 | */ |
||
| 14 | private $preserveUnknownEntries = false; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @return string[] |
||
| 18 | */ |
||
| 19 | public function getPath(): array |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param string[] $path |
||
| 26 | * @return $this |
||
| 27 | */ |
||
| 28 | public function setPath(array $path): Context |
||
| 29 | { |
||
| 30 | $this->path = $path; |
||
| 31 | return $this; |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return bool |
||
| 36 | */ |
||
| 37 | public function shouldPreserveUnknownOptions(): bool |
||
| 38 | { |
||
| 39 | return $this->preserveUnknownEntries; |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param bool $preserveUnknownEntries |
||
| 44 | * @return $this |
||
| 45 | */ |
||
| 46 | public function setPreserveUnknownEntries(bool $preserveUnknownEntries): Context |
||
| 50 | } |
||
| 51 | } |
||
| 52 |