Conditions | 4 |
Paths | 8 |
Total Lines | 17 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | public function write($writer): void |
||
28 | { |
||
29 | $writer->startElement('category'); |
||
30 | |||
31 | if (null !== $this->id) { |
||
32 | $writer->writeAttribute('id', $this->id); |
||
33 | } |
||
34 | if (null !== $this->parentId) { |
||
35 | $writer->writeAttribute('parentId', $this->parentId); |
||
36 | } |
||
37 | if (null !== $this->name) { |
||
38 | $writer->text($this->name); |
||
39 | } |
||
40 | |||
41 | $this->writeCustomTags($writer); |
||
42 | |||
43 | $writer->endElement(); |
||
44 | } |
||
86 |