1 | <?php |
||
9 | class SamlSpInfo implements \Serializable |
||
10 | { |
||
11 | /** @var string */ |
||
12 | protected $authenticationServiceID; |
||
13 | |||
14 | /** @var NameID */ |
||
15 | protected $nameID; |
||
16 | |||
17 | /** @var Attribute[] */ |
||
18 | protected $attributes; |
||
19 | |||
20 | /** @var AuthnStatement */ |
||
21 | protected $authnStatement; |
||
22 | |||
23 | |||
24 | /** |
||
25 | * @param string $authenticationServiceID |
||
26 | * @param NameID|null $nameID |
||
27 | * @param Attribute[] $attributes |
||
28 | * @param \AerialShip\LightSaml\Model\Assertion\AuthnStatement $authnStatement |
||
29 | */ |
||
30 | 26 | public function __construct($authenticationServiceID, NameID $nameID = null, array $attributes = null, AuthnStatement $authnStatement = null) |
|
37 | |||
38 | |||
39 | /** |
||
40 | * @return \AerialShip\LightSaml\Model\Assertion\Attribute[] |
||
41 | */ |
||
42 | 18 | public function getAttributes() |
|
46 | |||
47 | /** |
||
48 | * @param Attribute $attr |
||
49 | * @return SamlSpInfo |
||
50 | */ |
||
51 | public function addAttribute(Attribute $attr) |
||
56 | |||
57 | /** |
||
58 | * @param \AerialShip\LightSaml\Model\Assertion\NameID $nameID |
||
59 | */ |
||
60 | public function setNameID($nameID) |
||
64 | |||
65 | /** |
||
66 | * @return \AerialShip\LightSaml\Model\Assertion\NameID |
||
67 | */ |
||
68 | 17 | public function getNameID() |
|
72 | |||
73 | /** |
||
74 | * @param \AerialShip\LightSaml\Model\Assertion\AuthnStatement $authnStatement |
||
75 | */ |
||
76 | public function setAuthnStatement($authnStatement) |
||
80 | |||
81 | /** |
||
82 | * @return \AerialShip\LightSaml\Model\Assertion\AuthnStatement |
||
83 | */ |
||
84 | 17 | public function getAuthnStatement() |
|
88 | |||
89 | /** |
||
90 | * @param string $authenticationServiceID |
||
91 | */ |
||
92 | public function setAuthenticationServiceID($authenticationServiceID) |
||
96 | |||
97 | /** |
||
98 | * @return string |
||
99 | */ |
||
100 | 1 | public function getAuthenticationServiceID() |
|
104 | |||
105 | |||
106 | |||
107 | |||
108 | |||
109 | |||
110 | /** |
||
111 | * {@inheritdoc} |
||
112 | */ |
||
113 | 2 | public function serialize() |
|
117 | |||
118 | /** |
||
119 | * {@inheritdoc} |
||
120 | */ |
||
121 | 2 | public function unserialize($serialized) |
|
125 | } |
||
126 |