| Total Complexity | 5 |
| Total Lines | 55 |
| Duplicated Lines | 0 % |
| Coverage | 57.14% |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class Context |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var bool |
||
| 9 | */ |
||
| 10 | private $ignoreIllegal = false; |
||
| 11 | /** |
||
| 12 | * @var bool |
||
| 13 | */ |
||
| 14 | private $ignoreMissing = false; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param bool $ignoreIllegal |
||
| 18 | * @param bool $ignoreMissing |
||
| 19 | */ |
||
| 20 | 17 | public function __construct($ignoreIllegal = false, $ignoreMissing = false) |
|
| 21 | { |
||
| 22 | 17 | $this->ignoreIllegal = $ignoreIllegal; |
|
| 23 | 17 | $this->ignoreMissing = $ignoreMissing; |
|
| 24 | 17 | } |
|
| 25 | |||
| 26 | /** |
||
| 27 | * @return bool |
||
| 28 | */ |
||
| 29 | 1 | public function shouldIgnoreIllegal() |
|
| 30 | { |
||
| 31 | 1 | return $this->ignoreIllegal; |
|
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param bool $ignoreIllegal |
||
| 36 | * @return $this |
||
| 37 | */ |
||
| 38 | public function setIgnoreIllegal($ignoreIllegal) |
||
| 39 | { |
||
| 40 | $this->ignoreIllegal = $ignoreIllegal; |
||
| 41 | return $this; |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return bool |
||
| 46 | */ |
||
| 47 | 3 | public function shouldIgnoreMissing() |
|
| 48 | { |
||
| 49 | 3 | return $this->ignoreMissing; |
|
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @param bool $ignoreMissing |
||
| 54 | * @return $this |
||
| 55 | */ |
||
| 56 | public function setIgnoreMissing($ignoreMissing) |
||
| 60 | } |
||
| 61 | } |
||
| 62 |