1 | <?php declare(strict_types=1); |
||
13 | class VariableCG extends AbstractCharacterGroup |
||
14 | { |
||
15 | /** string Character group matching regexp pattern matching group name */ |
||
16 | const PATTERN_GROUP = 'variable'; |
||
17 | |||
18 | /** string Regular expression matching character group */ |
||
19 | const PATTERN_REGEXP = '{.*?}'; |
||
20 | |||
21 | /** string Character group matching regexp pattern */ |
||
22 | const PATTERN = '(?<'.self::PATTERN_GROUP.'>'.self::PATTERN_REGEXP.')'; |
||
23 | |||
24 | /** |
||
25 | * @inheritdoc |
||
26 | */ |
||
27 | 8 | protected function compareLength(AbstractCharacterGroup $group): int |
|
49 | |||
50 | /** |
||
51 | * @return bool Return true if variable character group has filter |
||
52 | */ |
||
53 | 8 | public function variableHasFilter(): bool |
|
57 | } |
||
58 |