1 | <?php |
||
20 | class Conditions extends AbstractSamlModel |
||
21 | { |
||
22 | /** |
||
23 | * @var int|null |
||
24 | */ |
||
25 | protected $notBefore; |
||
26 | |||
27 | /** |
||
28 | * @var int|null |
||
29 | */ |
||
30 | protected $notOnOrAfter; |
||
31 | |||
32 | /** |
||
33 | * @var array|AbstractCondition[]|AudienceRestriction[]|OneTimeUse[]|ProxyRestriction[] |
||
34 | */ |
||
35 | protected $items = array(); |
||
36 | |||
37 | /** |
||
38 | * @param AbstractCondition $item |
||
39 | * |
||
40 | * @return Conditions |
||
41 | */ |
||
42 | 18 | public function addItem(AbstractCondition $item) |
|
48 | |||
49 | /** |
||
50 | * @return AbstractCondition[]|AudienceRestriction[]|OneTimeUse[]|ProxyRestriction[]|array |
||
51 | */ |
||
52 | 6 | public function getAllItems() |
|
56 | |||
57 | /** |
||
58 | * @return \LightSaml\Model\Assertion\AudienceRestriction[] |
||
59 | */ |
||
60 | 1 | public function getAllAudienceRestrictions() |
|
71 | |||
72 | /** |
||
73 | * @return \LightSaml\Model\Assertion\AudienceRestriction|null |
||
74 | */ |
||
75 | 2 | public function getFirstAudienceRestriction() |
|
85 | |||
86 | /** |
||
87 | * @return \LightSaml\Model\Assertion\OneTimeUse[] |
||
88 | */ |
||
89 | 1 | public function getAllOneTimeUses() |
|
100 | |||
101 | /** |
||
102 | * @return \LightSaml\Model\Assertion\OneTimeUse|null |
||
103 | */ |
||
104 | 1 | public function getFirstOneTimeUse() |
|
114 | |||
115 | /** |
||
116 | * @return \LightSaml\Model\Assertion\ProxyRestriction[] |
||
117 | */ |
||
118 | 1 | public function getAllProxyRestrictions() |
|
129 | |||
130 | /** |
||
131 | * @return \LightSaml\Model\Assertion\ProxyRestriction|null |
||
132 | */ |
||
133 | 1 | public function getFirstProxyRestriction() |
|
143 | |||
144 | /** |
||
145 | * @param int|string|\DateTime|null $notBefore |
||
146 | * |
||
147 | * @return Conditions |
||
148 | */ |
||
149 | 10 | public function setNotBefore($notBefore) |
|
155 | |||
156 | /** |
||
157 | * @return int|null |
||
158 | */ |
||
159 | 10 | public function getNotBeforeTimestamp() |
|
163 | |||
164 | /** |
||
165 | * @return int|null |
||
166 | */ |
||
167 | 5 | public function getNotBeforeString() |
|
175 | |||
176 | /** |
||
177 | * @return \DateTime|null |
||
178 | */ |
||
179 | public function getNotBeforeDateTime() |
||
187 | |||
188 | /** |
||
189 | * @param int|null $notOnOrAfter |
||
190 | * |
||
191 | * @return Conditions |
||
192 | */ |
||
193 | 10 | public function setNotOnOrAfter($notOnOrAfter) |
|
199 | |||
200 | /** |
||
201 | * @return int|null |
||
202 | */ |
||
203 | 4 | public function getNotOnOrAfterTimestamp() |
|
207 | |||
208 | /** |
||
209 | * @return string|null |
||
210 | */ |
||
211 | 5 | public function getNotOnOrAfterString() |
|
219 | |||
220 | /** |
||
221 | * @return \DateTime|null |
||
222 | */ |
||
223 | public function getNotOnOrAfterDateTime() |
||
231 | |||
232 | /** |
||
233 | * @param \DOMNode $parent |
||
234 | * @param SerializationContext $context |
||
235 | * |
||
236 | * @return void |
||
237 | */ |
||
238 | 4 | public function serialize(\DOMNode $parent, SerializationContext $context) |
|
251 | |||
252 | /** |
||
253 | * @param \DOMNode $node |
||
254 | * @param DeserializationContext $context |
||
255 | */ |
||
256 | 3 | public function deserialize(\DOMNode $node, DeserializationContext $context) |
|
287 | } |
||
288 |
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
integer
values, zero is a special case, in particular the following results might be unexpected: