We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 10 |
| Total Lines | 54 |
| Duplicated Lines | 0 % |
| Coverage | 88.46% |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | class Not extends AbstractRule |
||
| 20 | { |
||
| 21 | public $rule; |
||
| 22 | |||
| 23 | 18 | public function __construct(Validatable $rule) |
|
| 24 | { |
||
| 25 | 18 | $this->rule = $rule; |
|
| 26 | 18 | } |
|
| 27 | |||
| 28 | 5 | public function setName($name) |
|
| 33 | } |
||
| 34 | |||
| 35 | 12 | public function validate($input) |
|
| 36 | { |
||
| 37 | 12 | return false == $this->rule->validate($input); |
|
| 38 | } |
||
| 39 | |||
| 40 | 12 | public function assert($input) |
|
| 54 | } |
||
| 55 | |||
| 56 | 2 | private function absorbAllOf(AllOf $rule, $input) |
|
| 75 |