| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | 1 | public function __construct(string $reference) |
|
| 26 | { |
||
| 27 | 1 | $client = new StrAsClientReference($reference); |
|
| 28 | |||
| 29 | $fragment = <<<EOD |
||
| 30 | 1 | <xrd:client id:objectType="SUBSYSTEM" |
|
| 31 | xmlns:xrd="http://x-road.eu/xsd/xroad.xsd" |
||
| 32 | xmlns:id="http://x-road.eu/xsd/identifiers"> |
||
| 33 | 1 | <id:xRoadInstance>{$client->xRoadInstance()}</id:xRoadInstance> |
|
| 34 | 1 | <id:memberClass>{$client->memberClass()}</id:memberClass> |
|
| 35 | 1 | <id:memberCode>{$client->memberCode()}</id:memberCode> |
|
| 36 | 1 | <id:subsystemCode>{$client->subSystemCode()}</id:subsystemCode> |
|
| 37 | </xrd:client> |
||
| 38 | EOD; |
||
| 39 | |||
| 40 | 1 | $this->injection = new FragmentInjection( |
|
| 41 | 1 | 'http://schemas.xmlsoap.org/soap/envelope/', |
|
| 42 | 1 | 'Header', |
|
| 43 | $fragment |
||
| 44 | ); |
||
| 47 |