| Total Complexity | 5 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | trait TWrappers |
||
| 11 | { |
||
| 12 | /** @var array<string, string|array<string, string>> */ |
||
| 13 | protected array $wrappers = []; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Add wrap tag |
||
| 17 | * @param string $htmlTag |
||
| 18 | * @param string|array<string, string> $attributes |
||
| 19 | * @return $this |
||
| 20 | */ |
||
| 21 | 1 | public function addWrapper(string $htmlTag, $attributes = '') |
|
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Format data into tag with attributes |
||
| 29 | * @param string $data |
||
| 30 | * @return string |
||
| 31 | */ |
||
| 32 | 3 | protected function formatData(string $data): string |
|
| 48 |