1 | <?php declare(strict_types=1); |
||
13 | class FixedCG extends AbstractCG |
||
14 | { |
||
15 | /** string Character group matching regexp pattern matching group name */ |
||
16 | const PATTERN_GROUP = 'fixed'; |
||
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 | 3 | public function getCommonPrefix(AbstractCG $group): string |
|
46 | |||
47 | /** |
||
48 | * @inheritdoc |
||
49 | */ |
||
50 | 11 | public function compare(AbstractCG $group): int |
|
62 | |||
63 | /** |
||
64 | * @inheritdoc |
||
65 | */ |
||
66 | 7 | protected function compareLength(AbstractCG $group): int |
|
73 | } |
||
74 |