| Conditions | 1 |
| Paths | 1 |
| Total Lines | 5 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 24 | public function appendToXml(\SimpleXMLElement &$parent): void { |
||
| 25 | 1 | $enclosureElement = $parent->addChild("enclosure"); |
|
| 26 | 1 | $enclosureElement->addAttribute("url", $this->url); |
|
| 27 | 1 | $enclosureElement->addAttribute("length", (string) $this->length); |
|
| 28 | 1 | $enclosureElement->addAttribute("type", $this->type); |
|
| 29 | 1 | } |
|
| 31 | ?> |