| Total Complexity | 1 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class SAMLDateTimeValue extends DateTimeValue |
||
| 15 | { |
||
| 16 | // Lowercase p as opposed to the base-class to covert the timestamp to UTC as demanded by the SAML specifications |
||
| 17 | public const string DATETIME_FORMAT = 'Y-m-d\\TH:i:sp'; |
||
|
|
|||
| 18 | |||
| 19 | |||
| 20 | /** |
||
| 21 | * Validate the value. |
||
| 22 | */ |
||
| 23 | protected function validateValue(string $value): void |
||
| 24 | { |
||
| 25 | // Note: value must already be sanitized before validating |
||
| 26 | Assert::validSAMLDateTime($this->sanitizeValue($value), ProtocolViolationException::class); |
||
| 27 | } |
||
| 28 | } |
||
| 29 |