| 1 | <?php |
||
| 15 | class RegexMatch extends BaseProperty implements Match |
||
| 16 | { |
||
| 17 | /** @var string */ |
||
| 18 | private $regex; |
||
| 19 | /** @var string */ |
||
| 20 | private $pattern; |
||
| 21 | /** @var string */ |
||
| 22 | private $modifiers; |
||
| 23 | |||
| 24 | public function __construct(string $pattern, string $modifiers = '') |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param Voter $voter |
||
| 39 | * @return null|string |
||
| 40 | */ |
||
| 41 | public function accept(Voter &$voter) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | public function getPattern(): string |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @return string |
||
| 60 | */ |
||
| 61 | public function getModifiers(): string |
||
| 65 | } |
||
| 66 |