We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 25 | 3 | final class OneOf implements Rule |
|
| 26 | 3 | { |
|
| 27 | 3 | /** |
|
| 28 | 3 | * @var Rule[] |
|
| 29 | 2 | */ |
|
| 30 | private $rules = []; |
||
| 31 | |||
| 32 | 1 | /** |
|
| 33 | * Initializes the rule. |
||
| 34 | * |
||
| 35 | 7 | * @param Rule $rule |
|
| 36 | * @param Rule ...$rule2 |
||
| 37 | 7 | */ |
|
| 38 | 7 | public function __construct(Rule ...$rule) |
|
| 42 | |||
| 43 | 4 | /** |
|
| 44 | * {@inheritdoc} |
||
| 45 | */ |
||
| 46 | 7 | public function apply($input): Result |
|
| 68 | } |
||
| 69 |