Conditions | 3 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | protected static function validDateTime(string $value, string $message = ''): void |
||
21 | { |
||
22 | parent::validDateTime($value, $message); |
||
23 | |||
24 | try { |
||
25 | /** |
||
26 | * 1.2.2 Time Values |
||
27 | * |
||
28 | * All SAML time values have the type xsd:dateTime, which is built in to the W3C XML Schema Datatypes |
||
29 | * specification [Schema2], and MUST be expressed in UTC form |
||
30 | */ |
||
31 | static::endsWith( |
||
32 | $value, |
||
33 | 'Z', |
||
34 | $message ?: '%s is not a DateTime expressed in the UTC timezone using the \'Z\' timezone identifier.', |
||
35 | ); |
||
36 | } catch (AssertionFailedException $e) { |
||
37 | throw new ProtocolViolationException($e->getMessage()); |
||
38 | } |
||
41 |