[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/lcobucci/jwt/src/Token/ -> RegisteredClaimGiven.php (source)

   1  <?php
   2  
   3  namespace Lcobucci\JWT\Token;
   4  
   5  use InvalidArgumentException;
   6  use Lcobucci\JWT\Exception;
   7  
   8  use function sprintf;
   9  
  10  final class RegisteredClaimGiven extends InvalidArgumentException implements Exception
  11  {
  12      const DEFAULT_MESSAGE = 'Builder#withClaim() is meant to be used for non-registered claims, '
  13                                    . 'check the documentation on how to set claim "%s"';
  14  
  15      /**
  16       * @param string $name
  17       *
  18       * @return self
  19       */
  20      public static function forClaim($name)
  21      {
  22          return new self(sprintf(self::DEFAULT_MESSAGE, $name));
  23      }
  24  }


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer