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; 9 10use JsonSerializable; 11 12/** 13 * Basic interface for token claims 14 * 15 * @author Luís Otávio Cobucci Oblonczyk <lcobucci@gmail.com> 16 * @since 2.0.0 17 */ 18interface Claim extends JsonSerializable 19{ 20 /** 21 * Returns the claim name 22 * 23 * @return string 24 */ 25 public function getName(); 26 27 /** 28 * Returns the claim value 29 * 30 * @return mixed 31 */ 32 public function getValue(); 33 34 /** 35 * Returns the string representation of the claim 36 * 37 * @return string 38 */ 39 public function __toString(); 40} 41