| Total Complexity | 5 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class DefaultContext implements ContextInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string[] |
||
| 11 | */ |
||
| 12 | private $path = []; |
||
| 13 | /** |
||
| 14 | * @var bool |
||
| 15 | */ |
||
| 16 | private $ignoreUnknownParams = false; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @return string[] |
||
| 20 | */ |
||
| 21 | public function getPath(): array |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param string[] $path |
||
| 28 | * @return $this |
||
| 29 | */ |
||
| 30 | public function setPath(array $path) |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return bool |
||
| 38 | */ |
||
| 39 | public function shouldIgnoreUnknownParams(): bool |
||
| 40 | { |
||
| 41 | return $this->ignoreUnknownParams; |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param bool $ignoreUnknownParams |
||
| 46 | * @return $this |
||
| 47 | */ |
||
| 48 | public function setIgnoreUnknownParams(bool $ignoreUnknownParams) |
||
| 49 | { |
||
| 50 | $this->ignoreUnknownParams = $ignoreUnknownParams; |
||
| 51 | return $this; |
||
| 52 | } |
||
| 53 | |||
| 54 | public static function from(ContextInterface $context): DefaultContext |
||
| 59 | } |
||
| 60 | } |
||
| 61 |