| 1 | <?php |
||
| 14 | class AnyOf extends AbstractRule |
||
| 15 | { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var string String with characters. |
||
| 19 | */ |
||
| 20 | protected $rule; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | protected $name; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param string $rule String with characters. |
||
| 29 | * @param string $name Label for rule. |
||
| 30 | * @param callable $action |
||
| 31 | */ |
||
| 32 | 1 | public function __construct($rule, $name = "AnyOf", callable $action = null) |
|
| 38 | |||
| 39 | /** |
||
| 40 | * {@inheritdoc} |
||
| 41 | */ |
||
| 42 | 1 | public function scan(Context $context) |
|
| 61 | } |
||
| 62 |