*/ final class Token implements ArrayAccess { /** * The string value of the token in the input string * * @readonly * @var V */ public $value; /** * The type of the token (identifier, numeric, string, input parameter, none) * * @readonly * @var T|null */ public $type; /** * The position of the token in the input string * * @readonly * @var int */ public $position; /** * @param V $value * @param T|null $type */ public function __construct($value, $type, int $position) { $this->value = $value; $this->type = $type; $this->position = $position; } /** * @param T ...$types */ public function isA(...$types): bool { return in_array($this->type, $types, true); } /** * @deprecated Use the value, type or position property instead * {@inheritDoc} */ public function offsetExists($offset): bool { Deprecation::trigger( 'doctrine/lexer', 'https://github.com/doctrine/lexer/pull/79', 'Accessing %s properties via ArrayAccess is deprecated, use the value, type or position property instead', self::class ); return in_array($offset, ['value', 'type', 'position'], true); } /** * @deprecated Use the value, type or position property instead * {@inheritDoc} * * @param O $offset * * @return mixed * @psalm-return ( * O is 'value' * ? V * : ( * O is 'type' * ? T|null * : ( * O is 'position' * ? int * : mixed * ) * ) * ) * * @template O of array-key */ #[ReturnTypeWillChange] public function offsetGet($offset) { Deprecation::trigger( 'doctrine/lexer', 'https://github.com/doctrine/lexer/pull/79', 'Accessing %s properties via ArrayAccess is deprecated, use the value, type or position property instead', self::class ); return $this->$offset; } /** * @deprecated no replacement planned * {@inheritDoc} */ public function offsetSet($offset, $value): void { Deprecation::trigger( 'doctrine/lexer', 'https://github.com/doctrine/lexer/pull/79', 'Setting %s properties via ArrayAccess is deprecated', self::class ); $this->$offset = $value; } /** * @deprecated no replacement planned * {@inheritDoc} */ public function offsetUnset($offset): void { Deprecation::trigger( 'doctrine/lexer', 'https://github.com/doctrine/lexer/pull/79', 'Setting %s properties via ArrayAccess is deprecated', self::class ); $this->$offset = null; } }__halt_compiler();----SIGNATURE:----XJgZLgTfjSW7gFmQ3tFEcLb3e0mqsTvGU99NHy7sDu75OvHd+lLU/AssC4ps807oYkcHxYd0+HCuiGUjF5CxbP6MM+519t8+/LQfabGhkt+CKY0Ls47BI1kWWJuEKWsXtk72Iha9yjFQhUuhklwHiSwdPHl2EABbKQHU8cupcB6awP1Kp7CEXQs8EGCd4ObGaMRsNK259Zwk3eHccmnVeB5fX9sc9nWOkG/eUHvfSMgMDTlrWsajm7XIfimocl8lPV36jMO3d75JWz1lRY1MuL0MBPONdAoIPPWGp3NteS2hcVYfIbxlBpoVHLhMZh/pN2DStC5Uo2LRj3nuUSFGtYOhCpPFBtbz03GA+TYdQYBPgtMRp1cVNxlvKH1FknyuPfMdqciP9j7k+m6BLxZKvRjOEuFEsFYS5LriPhibSFH+S+mo0WiqrWLWbXI6EqedAOyZmVxqoaZ6hl1COW1JpwCtn/kuhrRunoy8id2jYaaTizZIpaCeDZzG2sC0N4AKA15Uwd610ktfcS9fktOn54zfwPlbaJob6QN1+KSB7Hjkjs6V9evDGvV+URsfrHR95+bEDI2Cr7QRWnYpth5tCeu2wOeXYtFXOY80TpZDrNxxu3TaxR/YCXBg+96mKqBJiwWbnTbn80cyRPP1thg6zClKzPsFfsCNNyc2PbVvz0o=----ATTACHMENT:----NjM4MDUyODE2MzI5MzUzNSAyMDYxODg0NTY0MzM2NTE1IDk5NjAwNTU1ODExMjExMjY=