1<?php
2/**
3 * This file is part of Lcobucci\JWT, a simple library to handle JWT and JWS
4 *
5 * @license http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
6 */
7
8namespace Lcobucci\JWT\Claim;
9
10use Lcobucci\JWT\ValidationData;
11
12/**
13 * Basic interface for validatable token claims
14 *
15 * @deprecated This interface will be removed on v4
16 *
17 * @author Luís Otávio Cobucci Oblonczyk <lcobucci@gmail.com>
18 * @since 2.0.0
19 */
20interface Validatable
21{
22    /**
23     * Returns if claim is valid according with given data
24     *
25     * @param ValidationData $data
26     *
27     * @return boolean
28     */
29    public function validate(ValidationData $data);
30}
31