We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 7 | class When extends AbstractRule |
||
| 8 | { |
||
| 9 | public $when; |
||
| 10 | public $then; |
||
| 11 | public $else; |
||
| 12 | |||
| 13 | 9 | public function __construct(Validatable $when, Validatable $then, Validatable $else = null) |
|
| 24 | |||
| 25 | 4 | public function validate($input) |
|
| 33 | |||
| 34 | 3 | public function assert($input) |
|
| 42 | |||
| 43 | 2 | public function check($input) |
|
| 51 | } |
||
| 52 |