| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 6 | public function __construct($fileName, \DOMElement $domElement, $formatOutput = false) |
||
| 7 | { |
||
| 8 | $domDocument = new \DOMDocument; |
||
| 9 | $domDocument->preserveWhiteSpace = false; |
||
| 10 | if ($formatOutput) { |
||
| 11 | $domDocument->formatOutput = true; |
||
| 12 | } |
||
| 13 | $domDocument->appendChild($domElement); |
||
| 14 | $fileData = $domDocument->saveXML(); |
||
| 15 | $domDocument = null; |
||
|
|
|||
| 16 | |||
| 17 | parent::__construct($fileName, $fileData, XmlFile::CONTENT_TYPE); |
||
| 18 | } |
||
| 20 |