[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

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

   1  <?php
   2  
   3  namespace Lcobucci\JWT\Token;
   4  
   5  use InvalidArgumentException;
   6  use Lcobucci\JWT\Exception;
   7  
   8  final class InvalidTokenStructure extends InvalidArgumentException implements Exception
   9  {
  10      /** @return self */
  11      public static function missingOrNotEnoughSeparators()
  12      {
  13          return new self('The JWT string must have two dots');
  14      }
  15  
  16      /**
  17       * @param string $part
  18       *
  19       * @return self
  20       */
  21      public static function arrayExpected($part)
  22      {
  23          return new self($part . ' must be an array');
  24      }
  25  
  26      /**
  27       * @param string $value
  28       *
  29       * @return self
  30       */
  31      public static function dateIsNotParseable($value)
  32      {
  33          return new self('Value is not in the allowed date format: ' . $value);
  34      }
  35  }


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