| Conditions | 2 |
| Paths | 2 |
| Total Lines | 21 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | 1 | public function __construct() |
|
| 15 | { |
||
| 16 | 1 | parent::__construct('ns2'); |
|
| 17 | |||
| 18 | 1 | $this->setAttribute(new XmlnsAttribute('', 'http://schemas.xmlsoap.org/ws/2004/08/addressing')); |
|
| 19 | |||
| 20 | $namespaces = [ |
||
| 21 | 1 | 'ns2' => 'http://schemas.xmlsoap.org/ws/2005/02/trust', |
|
| 22 | 'ns3' => 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd', |
||
| 23 | 'ns4' => 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd', |
||
| 24 | 'ns5' => 'http://www.w3.org/2000/09/xmldsig#', |
||
| 25 | 'ns6' => 'http://schemas.xmlsoap.org/ws/2004/09/policy', |
||
| 26 | ]; |
||
| 27 | |||
| 28 | 1 | foreach ($namespaces as $name => $value) { |
|
| 29 | 1 | $this->setAttribute(new XmlnsAttribute($name, $value)); |
|
| 30 | } |
||
| 31 | |||
| 32 | 1 | $this->appendElement(new XmlElement('TokenType', 'http://schemas.xmlsoap.org/ws/2005/02/sc/sct')); |
|
| 33 | 1 | $this->appendElement(new XmlElement('RequestType', 'http://schemas.xmlsoap.org/ws/2005/02/trust/Issue')); |
|
| 34 | } |
||
| 35 | } |