Total Complexity | 7 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 86.67% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | trait SvgTrait |
||
18 | { |
||
19 | protected \DOMElement $svg; |
||
20 | |||
21 | 8 | public function getElement(): \DOMElement |
|
24 | } |
||
25 | |||
26 | public function toHtml(bool $minify = false): string |
||
27 | { |
||
28 | return DomUtil::toHtml($this->svg, $minify); |
||
29 | } |
||
30 | |||
31 | 4 | public function toXml(bool $minify = false): string |
|
32 | { |
||
33 | 4 | return DomUtil::toXml($this->svg, $minify); |
|
34 | } |
||
35 | |||
36 | 1 | public function __toString(): string |
|
37 | { |
||
38 | 1 | return $this->toXml(); |
|
39 | } |
||
40 | |||
41 | 1 | public function __serialize(): array |
|
44 | } |
||
45 | |||
46 | 1 | public function __unserialize(array $data): void |
|
58 | } |
||
59 | } |
||
60 |