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