1 | <?php |
||
5 | class Regex implements FilterInterface |
||
6 | { |
||
7 | /** |
||
8 | * The rule to test against. |
||
9 | * |
||
10 | * @var mixed |
||
11 | */ |
||
12 | protected $rule; |
||
13 | |||
14 | /** |
||
15 | * Create a new Regex filter given the regular expression. |
||
16 | * |
||
17 | * @param string $rule The regular expression. |
||
18 | */ |
||
19 | public function __construct($rule) |
||
23 | |||
24 | /** |
||
25 | * {@inheritdoc} |
||
26 | */ |
||
27 | public function passes($key, $value) |
||
31 | } |