[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
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 8 namespace Lcobucci\JWT\Claim; 9 10 use Lcobucci\JWT\Claim; 11 12 /** 13 * The default claim 14 * 15 * @deprecated This class will be removed on v4 16 * 17 * @author Luís Otávio Cobucci Oblonczyk <[email protected]> 18 * @since 2.0.0 19 */ 20 class Basic implements Claim 21 { 22 /** 23 * @var string 24 */ 25 private $name; 26 27 /** 28 * @var mixed 29 */ 30 private $value; 31 32 /** 33 * Initializes the claim 34 * 35 * @param string $name 36 * @param mixed $value 37 */ 38 public function __construct($name, $value) 39 { 40 $this->name = $name; 41 $this->value = $value; 42 } 43 44 /** 45 * {@inheritdoc} 46 */ 47 public function getName() 48 { 49 return $this->name; 50 } 51 52 /** 53 * {@inheritdoc} 54 */ 55 public function getValue() 56 { 57 return $this->value; 58 } 59 60 /** 61 * {@inheritdoc} 62 */ 63 public function jsonSerialize() 64 { 65 return $this->value; 66 } 67 68 /** 69 * {@inheritdoc} 70 */ 71 public function __toString() 72 { 73 return (string) $this->value; 74 } 75 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |