Total Complexity | 3 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | abstract class AbstractAuthenticationQueryType extends AbstractSubjectQueryAbstractType |
||
18 | { |
||
19 | /** |
||
20 | * Initialize a samlp:AuthenticationQuery element. |
||
21 | * |
||
22 | * @param \SimpleSAML\SAML11\XML\saml\Subject $subject |
||
23 | * @param string $authenticationMethod |
||
24 | */ |
||
25 | public function __construct( |
||
26 | Subject $subject, |
||
27 | protected string $authenticationMethod, |
||
28 | ) { |
||
29 | Assert::validURI($authenticationMethod, SchemaViolationException::class); |
||
30 | |||
31 | parent::__construct($subject); |
||
32 | } |
||
33 | |||
34 | |||
35 | /** |
||
36 | * @return string |
||
37 | */ |
||
38 | public function getAuthenticationMethod(): string |
||
39 | { |
||
40 | return $this->authenticationMethod; |
||
41 | } |
||
42 | |||
43 | |||
44 | /** |
||
45 | * Convert this AuthenticationQuery to XML. |
||
46 | * |
||
47 | * @param \DOMElement $parent The element we are converting to XML. |
||
48 | * @return \DOMElement The XML element after adding the data corresponding to this SubjectQuery. |
||
49 | */ |
||
50 | public function toXML(?DOMElement $parent = null): DOMElement |
||
56 | } |
||
57 | } |
||
58 |