| @@ 458-462 (lines=5) @@ | ||
| 455 | } |
|
| 456 | ||
| 457 | if ($this->issuer !== null) { |
|
| 458 | if (is_string($this->issuer)) { |
|
| 459 | Utils::addString($root, Constants::NS_SAML, 'saml:Issuer', $this->issuer); |
|
| 460 | } elseif ($this->issuer instanceof XML\saml\Issuer) { |
|
| 461 | $this->issuer->toXML($root); |
|
| 462 | } |
|
| 463 | } |
|
| 464 | ||
| 465 | if (!empty($this->extensions)) { |
|
| @@ 1384-1388 (lines=5) @@ | ||
| 1381 | $root->setAttribute('Version', '2.0'); |
|
| 1382 | $root->setAttribute('IssueInstant', gmdate('Y-m-d\TH:i:s\Z', $this->issueInstant)); |
|
| 1383 | ||
| 1384 | if (is_string($this->issuer)) { |
|
| 1385 | $issuer = Utils::addString($root, Constants::NS_SAML, 'saml:Issuer', $this->issuer); |
|
| 1386 | } elseif ($this->issuer instanceof XML\saml\Issuer) { |
|
| 1387 | $issuer = $this->issuer->toXML($root); |
|
| 1388 | } |
|
| 1389 | ||
| 1390 | $this->addSubject($root); |
|
| 1391 | $this->addConditions($root); |
|