Total Complexity | 2 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | abstract class ConvertHelper_URLFinder_Detector |
||
8 | { |
||
9 | const RUN_BEFORE = 'before'; |
||
10 | const RUN_AFTER = 'after'; |
||
11 | |||
12 | /** |
||
13 | * @var string[] |
||
14 | */ |
||
15 | private $matches = array(); |
||
16 | |||
17 | public function processString(string $subject) : string |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * @return string[] |
||
28 | */ |
||
29 | public function getMatches() : array |
||
32 | } |
||
33 | |||
34 | abstract public function getRunPosition() : string; |
||
35 | |||
36 | abstract public function isValidFor(string $subject) : bool; |
||
37 | |||
38 | abstract protected function filterSubject(string $subject) : string; |
||
39 | |||
40 | /** |
||
41 | * @param string $subject |
||
42 | * @return string[] |
||
43 | */ |
||
44 | abstract protected function detect(string $subject) : array; |
||
45 | } |
||
46 |