Conditions | 3 |
Paths | 4 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
24 | public function write(): void |
||
25 | { |
||
26 | $this->writer->startElement($this->key); |
||
27 | |||
28 | foreach ($this->attributes as $key => $value) { |
||
29 | $this->writer->writeAttribute($key, $value); |
||
30 | } |
||
31 | |||
32 | if($this->value instanceof BaseObject) { |
||
33 | $this->writer->writeElement($this->groupKey, $this->value); |
||
|
|||
34 | } else { |
||
35 | $this->writer->text($this->value); |
||
36 | } |
||
37 | |||
38 | $this->writer->endElement(); |
||
39 | } |
||
40 | } |