Conditions | 2 |
Paths | 2 |
Total Lines | 21 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | public function __construct($reference) |
||
25 | { |
||
26 | $elements = [ |
||
27 | new FragmentInjection( |
||
28 | 'http://schemas.xmlsoap.org/soap/envelope/', |
||
29 | 'Header', |
||
30 | '<xrd:client xmlns:xrd="http://x-road.eu/xsd/xroad.xsd" ' . |
||
31 | 'xmlns:id="http://x-road.eu/xsd/identifiers" ' . |
||
32 | 'id:objectType="SUBSYSTEM"/>' |
||
33 | ), |
||
34 | ]; |
||
35 | |||
36 | foreach ($reference as $name => $value) { |
||
37 | $elements[] = new DOMElementInjection( |
||
38 | 'http://x-road.eu/xsd/xroad.xsd', |
||
39 | 'client', |
||
40 | new \DOMElement($name, $value, 'http://x-road.eu/xsd/identifiers') |
||
41 | ); |
||
42 | } |
||
43 | |||
44 | parent::__construct(...$elements); |
||
45 | } |
||
47 |