| Total Complexity | 5 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | trait SvgTrait |
||
| 18 | { |
||
| 19 | protected \DOMElement $svg; |
||
| 20 | |||
| 21 | 7 | public function getElement(): \DOMElement |
|
| 22 | { |
||
| 23 | 7 | return $this->svg; |
|
| 24 | } |
||
| 25 | |||
| 26 | 4 | public function __toString(): string |
|
| 27 | { |
||
| 28 | 4 | return DomUtil::toXml($this->svg); |
|
| 29 | } |
||
| 30 | |||
| 31 | 1 | public function __serialize(): array |
|
| 34 | } |
||
| 35 | |||
| 36 | 1 | public function __unserialize(array $data): void |
|
| 48 | } |
||
| 49 | } |
||
| 50 |