| @@ 1341-1345 (lines=5) @@ | ||
| 1338 | $root->setAttribute('Version', '2.0'); |
|
| 1339 | $root->setAttribute('IssueInstant', gmdate('Y-m-d\TH:i:s\Z', $this->issueInstant)); |
|
| 1340 | ||
| 1341 | if (is_string($this->issuer)) { |
|
| 1342 | $issuer = Utils::addString($root, Constants::NS_SAML, 'saml:Issuer', $this->issuer); |
|
| 1343 | } elseif ($this->issuer instanceof \SAML2\XML\saml\Issuer) { |
|
| 1344 | $issuer = $this->issuer->toXML($root); |
|
| 1345 | } |
|
| 1346 | ||
| 1347 | $this->addSubject($root); |
|
| 1348 | $this->addConditions($root); |
|
| @@ 443-447 (lines=5) @@ | ||
| 440 | } |
|
| 441 | ||
| 442 | if ($this->issuer !== null) { |
|
| 443 | if (is_string($this->issuer)) { |
|
| 444 | Utils::addString($root, \SAML2_Const::NS_SAML, 'saml:Issuer', $this->issuer); |
|
| 445 | } elseif ($this->issuer instanceof XML\saml\Issuer) { |
|
| 446 | $this->issuer->toXML($root); |
|
| 447 | } |
|
| 448 | } |
|
| 449 | ||
| 450 | if (!empty($this->extensions)) { |
|