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