Total Complexity | 7 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
5 | abstract class Tag |
||
6 | { |
||
7 | protected static $blocks = []; |
||
8 | |||
9 | private static $content; |
||
10 | |||
11 | private $search; |
||
12 | |||
13 | protected function replace(string $replace): void |
||
14 | { |
||
15 | self::$content = str_replace($this->search, $replace, self::$content); |
||
16 | } |
||
17 | |||
18 | protected function match($pattern, $callback): void |
||
28 | } |
||
29 | } |
||
30 | } |
||
31 | |||
32 | public static function setContent(string $content): void |
||
33 | { |
||
34 | self::$content = $content; |
||
35 | } |
||
36 | |||
37 | public static function getContent(): string |
||
38 | { |
||
39 | return self::$content; |
||
40 | } |
||
41 | |||
42 | public static function setConfig(array $config): void |
||
45 | } |
||
46 | } |
||
47 |