[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 namespace Lcobucci\JWT\Validation\Constraint; 4 5 use Lcobucci\JWT\Token; 6 use Lcobucci\JWT\Validation\Constraint; 7 use Lcobucci\JWT\Validation\ConstraintViolation; 8 9 final class RelatedTo implements Constraint 10 { 11 /** @var string */ 12 private $subject; 13 14 public function __construct($subject) 15 { 16 $this->subject = $subject; 17 } 18 19 public function assert(Token $token) 20 { 21 if (! $token->isRelatedTo($this->subject)) { 22 throw new ConstraintViolation( 23 'The token is not related to the expected subject' 24 ); 25 } 26 } 27 }
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 |