friendship ended with social-app. php is my new best friend
1<?php
2declare(strict_types=1);
3
4namespace Lcobucci\JWT;
5
6use Lcobucci\JWT\Validation\Constraint;
7use Lcobucci\JWT\Validation\NoConstraintsGiven;
8use Lcobucci\JWT\Validation\RequiredConstraintsViolated;
9
10interface Validator
11{
12 /**
13 * @throws RequiredConstraintsViolated
14 * @throws NoConstraintsGiven
15 */
16 public function assert(Token $token, Constraint ...$constraints): void;
17
18 /** @throws NoConstraintsGiven */
19 public function validate(Token $token, Constraint ...$constraints): bool;
20}