@@ -76,7 +76,7 @@ |
||
76 | 76 | * are not configured to be used with the usage given |
77 | 77 | * |
78 | 78 | * @param array $configuredKeys |
79 | - * @param $usage |
|
79 | + * @param null|string $usage |
|
80 | 80 | */ |
81 | 81 | public function loadKeys(array $configuredKeys, $usage) |
82 | 82 | { |
@@ -493,7 +493,7 @@ |
||
493 | 493 | * namespaces needed to parse the XML. |
494 | 494 | */ |
495 | 495 | $xml = '<root xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" '. |
496 | - 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">' . |
|
496 | + 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">' . |
|
497 | 497 | $decrypted . |
498 | 498 | '</root>'; |
499 | 499 |
@@ -260,7 +260,7 @@ |
||
260 | 260 | * |
261 | 261 | * @param \DOMElement $node The element we should fetch the attribute from. |
262 | 262 | * @param string $attributeName The name of the attribute. |
263 | - * @param mixed $default The value that should be returned if the attribute doesn't exist. |
|
263 | + * @param false|null $default The value that should be returned if the attribute doesn't exist. |
|
264 | 264 | * @return bool|mixed The value of the attribute, or $default if the attribute doesn't exist. |
265 | 265 | * @throws \Exception |
266 | 266 | */ |
@@ -62,11 +62,11 @@ |
||
62 | 62 | */ |
63 | 63 | private $encryptionKey; |
64 | 64 | |
65 | - /** |
|
66 | - * The earliest time this assertion is valid, as an UNIX timestamp. |
|
67 | - * |
|
68 | - * @var int |
|
69 | - */ |
|
65 | + /** |
|
66 | + * The earliest time this assertion is valid, as an UNIX timestamp. |
|
67 | + * |
|
68 | + * @var int |
|
69 | + */ |
|
70 | 70 | private $notBefore; |
71 | 71 | |
72 | 72 | /** |
@@ -753,7 +753,7 @@ discard block |
||
753 | 753 | /** |
754 | 754 | * Check whether the NameId is encrypted. |
755 | 755 | * |
756 | - * @return true if the NameId is encrypted, false if not. |
|
756 | + * @return boolean if the NameId is encrypted, false if not. |
|
757 | 757 | */ |
758 | 758 | public function isNameIdEncrypted() |
759 | 759 | { |
@@ -1155,7 +1155,7 @@ discard block |
||
1155 | 1155 | * |
1156 | 1156 | * The URI reference MAY directly resolve into an XML document containing the referenced declaration. |
1157 | 1157 | * |
1158 | - * @return string |
|
1158 | + * @return Chunk |
|
1159 | 1159 | */ |
1160 | 1160 | public function getAuthnContextDeclRef() |
1161 | 1161 | { |
@@ -1217,7 +1217,6 @@ discard block |
||
1217 | 1217 | /** |
1218 | 1218 | * Replace all attributes value types.. |
1219 | 1219 | * |
1220 | - * @param array $attributes All new attribute value types, as an associative array. |
|
1221 | 1220 | */ |
1222 | 1221 | public function setAttributesValueTypes(array $attributesValueTypes) |
1223 | 1222 | { |
@@ -107,7 +107,7 @@ |
||
107 | 107 | /** |
108 | 108 | * Check whether the NameId is encrypted. |
109 | 109 | * |
110 | - * @return true if the NameId is encrypted, false if not. |
|
110 | + * @return boolean if the NameId is encrypted, false if not. |
|
111 | 111 | */ |
112 | 112 | public function isNameIdEncrypted() |
113 | 113 | { |
@@ -45,7 +45,7 @@ |
||
45 | 45 | /** |
46 | 46 | * Retrieve the assertions in this response. |
47 | 47 | * |
48 | - * @return \SAML2\Assertion[]|\SAML2\EncryptedAssertion[] |
|
48 | + * @return Utilities\ArrayCollection |
|
49 | 49 | */ |
50 | 50 | public function getAssertions() |
51 | 51 | { |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | * @param \SAML2\Configuration\Destination $currentDestination |
65 | 65 | * @param \SAML2\Response $response |
66 | 66 | * |
67 | - * @return \SAML2\Assertion[] Collection (\SAML2\Utilities\ArrayCollection) of \SAML2\Assertion objects |
|
67 | + * @return \SAML2\Utilities\ArrayCollection Collection (\SAML2\Utilities\ArrayCollection) of \SAML2\Assertion objects |
|
68 | 68 | */ |
69 | 69 | public function process( |
70 | 70 | ServiceProvider $serviceProviderConfiguration, |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | /** |
135 | 135 | * @param \SAML2\Response $response |
136 | 136 | * |
137 | - * @return \SAML2\Assertion[] |
|
137 | + * @return \SAML2\Utilities\ArrayCollection |
|
138 | 138 | */ |
139 | 139 | private function processAssertions(Response $response) |
140 | 140 | { |
@@ -212,6 +212,10 @@ |
||
212 | 212 | * @param $soapmessage Soap response needs to be type DOMDocument |
213 | 213 | * @return $soapfaultstring string|null |
214 | 214 | */ |
215 | + |
|
216 | + /** |
|
217 | + * @param \DOMDocument $soapMessage |
|
218 | + */ |
|
215 | 219 | private function getSOAPFault($soapMessage) |
216 | 220 | { |
217 | 221 | $soapFault = Utils::xpQuery($soapMessage->firstChild, '/soap-env:Envelope/soap-env:Body/soap-env:Fault'); |
@@ -53,8 +53,8 @@ |
||
53 | 53 | const CM_BEARER = 'urn:oasis:names:tc:SAML:2.0:cm:bearer'; |
54 | 54 | |
55 | 55 | /** |
56 | - * Holder-of-Key subject confirmation method. |
|
57 | - */ |
|
56 | + * Holder-of-Key subject confirmation method. |
|
57 | + */ |
|
58 | 58 | const CM_HOK = 'urn:oasis:names:tc:SAML:2.0:cm:holder-of-key'; |
59 | 59 | |
60 | 60 | /** |
@@ -355,7 +355,7 @@ |
||
355 | 355 | /** |
356 | 356 | * Retrieve the issuer if this message. |
357 | 357 | * |
358 | - * @return string|\SAML2\XML\saml\Issuer|null The issuer of this message, or NULL if no issuer is given |
|
358 | + * @return string The issuer of this message, or NULL if no issuer is given |
|
359 | 359 | */ |
360 | 360 | public function getIssuer() |
361 | 361 | { |