We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | 9 | public function __construct(Validatable $when, Validatable $then, Validatable $else = null) |
|
| 14 | { |
||
| 15 | 9 | $this->when = $when; |
|
| 16 | 9 | $this->then = $then; |
|
| 17 | 9 | if (null === $else) { |
|
| 18 | 3 | $else = new AlwaysInvalid(); |
|
| 19 | 3 | $else->setTemplate(AlwaysInvalidException::SIMPLE); |
|
| 20 | 3 | } |
|
| 21 | |||
| 22 | 9 | $this->else = $else; |
|
| 23 | 9 | } |
|
| 24 | |||
| 52 |