| Total Complexity | 4 |
| Total Lines | 54 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class NovaParameterWriter |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Dom document. |
||
| 15 | * |
||
| 16 | * @var DOMDocument |
||
| 17 | */ |
||
| 18 | private $document; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Parent element. |
||
| 22 | * |
||
| 23 | * @var DOMElement |
||
| 24 | */ |
||
| 25 | private $parent; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Parameter prefix. |
||
| 29 | * |
||
| 30 | * @var string |
||
| 31 | */ |
||
| 32 | private $parameterPrefix; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * NovaParameterWriter constructor. |
||
| 36 | * |
||
| 37 | * @param DOMDocument $document DOM Document |
||
| 38 | * @param DOMElement $parent Parent element |
||
| 39 | * @param string $namespace Parameter namespace |
||
| 40 | */ |
||
| 41 | 3 | public function __construct(DOMDocument $document, DOMElement $parent, string $namespace = 'novagp:') |
|
| 46 | 3 | } |
|
| 47 | |||
| 48 | /** |
||
| 49 | * Appends the given parameters to the document inside the parent element. |
||
| 50 | * |
||
| 51 | * @param NovaParameterMap $parameterMap Parameter map |
||
| 52 | * |
||
| 53 | * @return void |
||
| 54 | */ |
||
| 55 | 3 | public function appendToDocument(NovaParameterMap $parameterMap) |
|
| 68 |