Al-HUWAITI Shell
Al-huwaiti


Server : nginx/1.18.0
System : Linux localhost 6.14.3-x86_64-linode168 #1 SMP PREEMPT_DYNAMIC Mon Apr 21 19:47:55 EDT 2025 x86_64
User : www-data ( 33)
PHP Version : 8.0.16
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Directory :  /var/www/ecommerce/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/ecommerce/vendor/friendsofphp/php-cs-fixer/src/Tokenizer/CT.php
<?php

declare(strict_types=1);

/*
 * This file is part of PHP CS Fixer.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *     Dariusz Rumiński <dariusz.ruminski@gmail.com>
 *
 * This source file is subject to the MIT license that is bundled
 * with this source code in the file LICENSE.
 */

namespace PhpCsFixer\Tokenizer;

/**
 * @author Dariusz Rumiński <dariusz.ruminski@gmail.com>
 */
final class CT
{
    public const T_ARRAY_INDEX_CURLY_BRACE_CLOSE = 10001;
    public const T_ARRAY_INDEX_CURLY_BRACE_OPEN = 10002;
    public const T_ARRAY_SQUARE_BRACE_CLOSE = 10003;
    public const T_ARRAY_SQUARE_BRACE_OPEN = 10004;
    public const T_ARRAY_TYPEHINT = 10005;
    public const T_BRACE_CLASS_INSTANTIATION_CLOSE = 10006;
    public const T_BRACE_CLASS_INSTANTIATION_OPEN = 10007;
    public const T_CLASS_CONSTANT = 10008;
    public const T_CONST_IMPORT = 10009;
    public const T_CURLY_CLOSE = 10010;
    public const T_DESTRUCTURING_SQUARE_BRACE_CLOSE = 10011;
    public const T_DESTRUCTURING_SQUARE_BRACE_OPEN = 10012;
    public const T_DOLLAR_CLOSE_CURLY_BRACES = 10013;
    public const T_DYNAMIC_PROP_BRACE_CLOSE = 10014;
    public const T_DYNAMIC_PROP_BRACE_OPEN = 10015;
    public const T_DYNAMIC_VAR_BRACE_CLOSE = 10016;
    public const T_DYNAMIC_VAR_BRACE_OPEN = 10017;
    public const T_FUNCTION_IMPORT = 10018;
    public const T_GROUP_IMPORT_BRACE_CLOSE = 10019;
    public const T_GROUP_IMPORT_BRACE_OPEN = 10020;
    public const T_NAMESPACE_OPERATOR = 10021;
    public const T_NULLABLE_TYPE = 10022;
    public const T_RETURN_REF = 10023;
    public const T_TYPE_ALTERNATION = 10024;
    public const T_TYPE_COLON = 10025;
    public const T_USE_LAMBDA = 10026;
    public const T_USE_TRAIT = 10027;
    public const T_CONSTRUCTOR_PROPERTY_PROMOTION_PUBLIC = 10028;
    public const T_CONSTRUCTOR_PROPERTY_PROMOTION_PROTECTED = 10029;
    public const T_CONSTRUCTOR_PROPERTY_PROMOTION_PRIVATE = 10030;
    public const T_ATTRIBUTE_CLOSE = 10031;
    public const T_NAMED_ARGUMENT_NAME = 10032;
    public const T_NAMED_ARGUMENT_COLON = 10033;
    public const T_FIRST_CLASS_CALLABLE = 10034;
    public const T_TYPE_INTERSECTION = 10035;

    private function __construct()
    {
    }

    /**
     * Get name for custom token.
     *
     * @param int $value custom token value
     */
    public static function getName(int $value): string
    {
        if (!self::has($value)) {
            throw new \InvalidArgumentException(sprintf('No custom token was found for "%s".', $value));
        }

        $tokens = self::getMapById();

        return 'CT::'.$tokens[$value];
    }

    /**
     * Check if given custom token exists.
     *
     * @param int $value custom token value
     */
    public static function has(int $value): bool
    {
        $tokens = self::getMapById();

        return isset($tokens[$value]);
    }

    private static function getMapById(): array
    {
        static $constants;

        if (null === $constants) {
            $reflection = new \ReflectionClass(__CLASS__);
            $constants = array_flip($reflection->getConstants());
        }

        return $constants;
    }
}

Al-HUWAITI Shell