| Total Complexity | 4 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | trait ReferenceTimeValidation |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Validate the claim against given constraint. |
||
| 16 | * |
||
| 17 | * @param mixed $constraint |
||
| 18 | */ |
||
| 19 | abstract public function validate($constraint): bool; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Override default Claim validation. |
||
| 23 | * |
||
| 24 | * Uses reference time of the validation context as a constraint. |
||
| 25 | * |
||
| 26 | * @see \Sop\JWX\JWT\Claim\Claim::validateWithContext() |
||
| 27 | */ |
||
| 28 | 16 | public function validateWithContext(ValidationContext $ctx): bool |
|
| 44 |