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