| Conditions | 3 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function validate( |
||
| 22 | SubjectConfirmation $subjectConfirmation, |
||
| 23 | Result $result, |
||
| 24 | ): void { |
||
| 25 | $notBefore = $subjectConfirmation->getSubjectConfirmationData()?->getNotBefore()?->toDateTime(); |
||
| 26 | $clock = Utils::getContainer()->getClock(); |
||
| 27 | |||
| 28 | if ($notBefore !== null && $notBefore > ($clock->now()->add(new DateInterval('PT60S')))) { |
||
| 29 | $result->addError('NotBefore in SubjectConfirmationData is in the future'); |
||
| 30 | } |
||
| 33 |