1 | <?php |
||
8 | class Regexp extends Base { |
||
9 | |||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | protected $error = 'Invalid value'; |
||
14 | |||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $regexp = ''; |
||
19 | |||
20 | |||
21 | /** |
||
22 | * @param string $regexp |
||
23 | * @return $this |
||
24 | */ |
||
25 | 1 | public function setRegexp($regexp) { |
|
29 | |||
30 | |||
31 | /** |
||
32 | * @param string $error |
||
33 | * @return $this |
||
34 | */ |
||
35 | public function setError($error) { |
||
39 | |||
40 | |||
41 | /** |
||
42 | * @param string $value |
||
43 | * @return bool |
||
44 | */ |
||
45 | 1 | public function isValid($value) { |
|
52 | |||
53 | } |