ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
SubjectConfirmationNotBefore.php
Go to the documentation of this file.
1<?php
2
4
9
12{
13 public function validate(
14 SubjectConfirmation $subjectConfirmation,
16 ) {
17 $notBefore = $subjectConfirmation->SubjectConfirmationData->NotBefore;
18 if ($notBefore && $notBefore > Temporal::getTime() + 60) {
19 $result->addError('NotBefore in SubjectConfirmationData is in the future');
20 }
21 }
22}
$result
An exception for terminatinating execution or to throw for unit testing.
Simple Result object.
Definition: Result.php:11
static getTime()
Getter for getting the current timestamp.
Definition: Temporal.php:13