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