1212use SimpleSAML \XML \ArrayizableElementInterface ;
1313use SimpleSAML \XML \SchemaValidatableElementInterface ;
1414use SimpleSAML \XML \SchemaValidatableElementTrait ;
15+ use SimpleSAML \XML \Type \LangValue ;
1516use SimpleSAML \XML \TypedTextContentTrait ;
1617use SimpleSAML \XMLSchema \Exception \InvalidDOMElementException ;
1718use SimpleSAML \XMLSchema \Exception \SchemaViolationException ;
18- use SimpleSAML \XMLSchema \Type \LanguageValue ;
1919use SimpleSAML \XMLSchema \Type \PositiveIntegerValue ;
2020
2121/**
@@ -44,13 +44,13 @@ final class Logo extends AbstractMduiElement implements
4444 * @param \SimpleSAML\SAML2\Type\SAMLAnyURIValue $url
4545 * @param \SimpleSAML\XMLSchema\Type\PositiveIntegerValue $height
4646 * @param \SimpleSAML\XMLSchema\Type\PositiveIntegerValue $width
47- * @param \SimpleSAML\XMLSchema \Type\LanguageValue |null $lang
47+ * @param \SimpleSAML\XML \Type\LangValue |null $lang
4848 */
4949 public function __construct (
5050 SAMLAnyURIValue $ url ,
5151 protected PositiveIntegerValue $ height ,
5252 protected PositiveIntegerValue $ width ,
53- protected ?LanguageValue $ lang = null ,
53+ protected ?LangValue $ lang = null ,
5454 ) {
5555 $ this ->setContent ($ url );
5656 }
@@ -73,9 +73,9 @@ protected function validateContent(string $content): void
7373 /**
7474 * Collect the value of the lang-property
7575 *
76- * @return \SimpleSAML\XMLSchema \Type\LanguageValue |null
76+ * @return \SimpleSAML\XML \Type\LangValue |null
7777 */
78- public function getLanguage (): ?LanguageValue
78+ public function getLanguage (): ?LangValue
7979 {
8080 return $ this ->lang ;
8181 }
@@ -120,7 +120,7 @@ public static function fromXML(DOMElement $xml): static
120120 $ Url = SAMLAnyURIValue::fromString ($ xml ->textContent );
121121 $ Width = self ::getAttribute ($ xml , 'width ' , PositiveIntegerValue::class);
122122 $ Height = self ::getAttribute ($ xml , 'height ' , PositiveIntegerValue::class);
123- $ lang = self ::getOptionalAttribute ($ xml , 'xml:lang ' , LanguageValue ::class, null );
123+ $ lang = self ::getOptionalAttribute ($ xml , 'xml:lang ' , LangValue ::class, null );
124124
125125 return new static ($ Url , $ Height , $ Width , $ lang );
126126 }
@@ -162,7 +162,7 @@ public static function fromArray(array $data): static
162162 SAMLAnyURIValue::fromString ($ data ['url ' ]),
163163 PositiveIntegerValue::fromInteger ($ data ['height ' ]),
164164 PositiveIntegerValue::fromInteger ($ data ['width ' ]),
165- $ data ['lang ' ] !== null ? LanguageValue ::fromString ($ data ['lang ' ]) : null ,
165+ $ data ['lang ' ] !== null ? LangValue ::fromString ($ data ['lang ' ]) : null ,
166166 );
167167 }
168168
0 commit comments