- Created CHANGELOG.md to maintain version history. - Added README.md with usage instructions for the trigger_deprecation() function. - Initialized composer.json for the Symfony Deprecation Contracts library, specifying dependencies and autoloading.
24 lines
575 B
PHP
24 lines
575 B
PHP
<?php
|
|
|
|
namespace PShowSsoScoped\Lcobucci\JWT;
|
|
|
|
use PShowSsoScoped\Lcobucci\JWT\Validation\Constraint;
|
|
use PShowSsoScoped\Lcobucci\JWT\Validation\NoConstraintsGiven;
|
|
use PShowSsoScoped\Lcobucci\JWT\Validation\RequiredConstraintsViolated;
|
|
|
|
interface Validator
|
|
{
|
|
/**
|
|
* @throws RequiredConstraintsViolated
|
|
* @throws NoConstraintsGiven
|
|
*/
|
|
public function assert(Token $token, Constraint ...$constraints);
|
|
|
|
/**
|
|
* @return bool
|
|
*
|
|
* @throws NoConstraintsGiven
|
|
*/
|
|
public function validate(Token $token, Constraint ...$constraints);
|
|
}
|