55namespace SimpleSAML \WSSecurity \XML \fed ;
66
77use DOMElement ;
8- use SimpleSAML \SAML2 \Type \{SAMLAnyURIValue , SAMLDateTimeValue , SAMLStringValue };
9- use SimpleSAML \SAML2 \XML \md \{Extensions , Organization };
8+ use SimpleSAML \SAML2 \Type \SAMLAnyURIValue ;
9+ use SimpleSAML \SAML2 \Type \SAMLAnyURIListValue ;
10+ use SimpleSAML \SAML2 \Type \SAMLDateTimeValue ;
11+ use SimpleSAML \SAML2 \Type \SAMLStringValue ;
12+ use SimpleSAML \SAML2 \XML \md \Extensions ;
13+ use SimpleSAML \SAML2 \XML \md \Organization ;
1014use SimpleSAML \WSSecurity \Assert \Assert ;
1115use SimpleSAML \WSSecurity \Constants as C ;
12- use SimpleSAML \XML \Exception \{MissingElementException , SchemaViolationException };
13- use SimpleSAML \XML \Type \{AnyURIValue , DurationValue , IDValue };
16+ use SimpleSAML \XMLSchema \Exception \MissingElementException ;
17+ use SimpleSAML \XMLSchema \Exception \SchemaViolationException ;
18+ use SimpleSAML \XMLSchema \Type \AnyURIValue ;
19+ use SimpleSAML \XMLSchema \Type \DurationValue ;
20+ use SimpleSAML \XMLSchema \Type \IDValue ;
21+ use SimpleSAML \XMLSchema \Type \QNameValue ;
1422
1523/**
1624 * A ApplicationServiceType
@@ -32,10 +40,11 @@ abstract class AbstractApplicationServiceType extends AbstractWebServiceDescript
3240 /**
3341 * ApplicationServiceType constructor.
3442 *
35- * @param string[] $protocolSupportEnumeration A set of URI specifying the protocols supported.
36- * @param \SimpleSAML\XML\Type\IDValue|null $ID The ID for this document. Defaults to null.
37- * @param \SimpleSAML\SAML2\Type\DateTimeValue|null $validUntil Unix time of validity for this document. Defaults to null.
38- * @param \SimpleSAML\XML\Type\DurationValue|null $cacheDuration Maximum time this document can be cached. Defaults to null.
43+ * @param \SimpleSAML\XMLSchema\Type\QNameValue $type The xsi-type of the element
44+ * @param \SimpleSAML\SAML2\Type\SAMLAnyURIListValue $protocolSupportEnumeration A set of URI specifying the protocols supported.
45+ * @param \SimpleSAML\XMLSchema\Type\IDValue|null $ID The ID for this document. Defaults to null.
46+ * @param \SimpleSAML\SAML2\Type\SAMLDateTimeValue|null $validUntil Unix time of validity for this document. Defaults to null.
47+ * @param \SimpleSAML\XMLSchema\Type\DurationValue|null $cacheDuration Maximum time this document can be cached. Defaults to null.
3948 * @param \SimpleSAML\SAML2\XML\md\Extensions|null $extensions An array of extensions. Defaults to an empty array.
4049 * @param \SimpleSAML\SAML2\Type\SAMLAnyURIValue|null $errorURL An URI where to redirect users for support. Defaults to null.
4150 * @param \SimpleSAML\SAML2\XML\md\KeyDescriptor[] $keyDescriptor An array of KeyDescriptor elements.
@@ -59,7 +68,8 @@ abstract class AbstractApplicationServiceType extends AbstractWebServiceDescript
5968 * @param \SimpleSAML\WSSecurity\XML\fed\PassiveRequestorEndpoint[] $passiveRequestorEndpoint
6069 */
6170 final public function __construct (
62- array $ protocolSupportEnumeration ,
71+ QNameValue $ type ,
72+ SAMLAnyURIListValue $ protocolSupportEnumeration ,
6373 ?IDValue $ ID = null ,
6474 ?SAMLDateTimeValue $ validUntil = null ,
6575 ?DurationValue $ cacheDuration = null ,
@@ -100,7 +110,7 @@ final public function __construct(
100110 );
101111
102112 parent ::__construct (
103- static :: XSI_TYPE_PREFIX . ' : ' . static :: XSI_TYPE_NAME ,
113+ $ type ,
104114 $ protocolSupportEnumeration ,
105115 $ ID ,
106116 $ validUntil ,
0 commit comments