| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | 35 | public function addCdataChild($name, $value = null, $namespace = null) |
|
| 20 | { |
||
| 21 | 35 | $element = $this->addChild($name, null, $namespace); |
|
| 22 | 35 | $dom = dom_import_simplexml($element); |
|
| 23 | 35 | $elementOwner = $dom->ownerDocument; |
|
| 24 | 35 | $dom->appendChild($elementOwner->createCDATASection($value)); |
|
| 25 | 35 | return $element; |
|
| 26 | } |
||
| 27 | |||
| 44 |