@@ -99,7 +99,7 @@ protected function signDocument(AbstractMetadataDocument $document): AbstractMet
9999 {
100100 $ cryptoUtils = new Utils \Crypto ();
101101
102- /** @var array $keyArray */
102+ /** @var array<mixed> $keyArray */
103103 $ keyArray = $ cryptoUtils ->loadPrivateKey ($ this ->config , true , 'metadata.sign. ' );
104104 $ certArray = $ cryptoUtils ->loadPublicKey ($ this ->config , false , 'metadata.sign. ' );
105105 $ algo = $ this ->config ->getOptionalString ('metadata.sign.algorithm ' , C::SIG_RSA_SHA256 );
@@ -123,6 +123,8 @@ protected function signDocument(AbstractMetadataDocument $document): AbstractMet
123123
124124 /**
125125 * This method builds the md:Organization element, if any
126+ *
127+ * @return \SimpleSAML\SAML2\XML\md\Organization
126128 */
127129 private function getOrganization (): ?Organization
128130 {
@@ -157,6 +159,8 @@ private function getOrganization(): ?Organization
157159
158160 /**
159161 * This method builds the role descriptor elements
162+ *
163+ * @return \SimpleSAML\SAML2\XML\md\AbstractRoleDescriptor[]
160164 */
161165 private function getRoleDescriptor (): array
162166 {
@@ -177,6 +181,8 @@ private function getRoleDescriptor(): array
177181
178182 /**
179183 * This method builds the SecurityTokenService element
184+ *
185+ * @return \SimpleSAML\WSSecurity\XML\fed\SecurityTokenServiceType
180186 */
181187 public function getSecurityTokenService (): SecurityTokenServiceType
182188 {
@@ -202,6 +208,8 @@ public function getSecurityTokenService(): SecurityTokenServiceType
202208
203209 /**
204210 * This method builds the md:KeyDescriptor elements, if any
211+ *
212+ * @return \SimpleSAML\SAML2\XML\md\KeyDescriptor[]
205213 */
206214 private function getKeyDescriptor (): array
207215 {
@@ -238,6 +246,8 @@ private function getKeyDescriptor(): array
238246
239247 /**
240248 * This method builds the md:ContactPerson elements, if any
249+ *
250+ * @return \SimpleSAML\SAML2\XML\md\ContactPerson[]
241251 */
242252 private function getContactPerson (): array
243253 {
@@ -255,6 +265,8 @@ private function getContactPerson(): array
255265
256266 /**
257267 * This method builds the md:Extensions, if any
268+ *
269+ * @return \SimpleSAML\SAML2\XML\md\Extensions|null
258270 */
259271 private function getExtensions (): ?Extensions
260272 {
@@ -332,6 +344,13 @@ private function getExtensions(): ?Extensions
332344 }
333345
334346
347+ /**
348+ * @param string $use
349+ * @param string $x509Cert
350+ * @param string|null $keyName
351+ *
352+ * @return \SimpleSAML\SAML2\XML\md\KeyDescriptor
353+ */
335354 private static function buildKeyDescriptor (string $ use , string $ x509Cert , ?string $ keyName ): KeyDescriptor
336355 {
337356 Assert::oneOf ($ use , ['encryption ' , 'signing ' ]);
0 commit comments