Total Complexity | 2 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
11 | abstract class SimplePatternExtractor implements Extractor |
||
12 | { |
||
13 | /** |
||
14 | * @param string $styles |
||
15 | * |
||
16 | * @return Import[] |
||
17 | */ |
||
18 | public function extract(string $styles): array |
||
31 | ); |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @return string |
||
36 | */ |
||
37 | abstract protected function getPattern(): string; |
||
38 | |||
39 | /** |
||
40 | * @param string $match |
||
41 | * |
||
42 | * @return Extractable |
||
43 | */ |
||
44 | abstract protected function createExtractable(string $match): Extractable; |
||
45 | } |
||
46 |