!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)

/uploads/script/vendor/composer/composer/src/Composer/Package/   drwxr-xr-x
Free 13.19 GB of 57.97 GB (22.76%)
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

/*
 * 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
{
    const 
TYPE_REQUIRE 'requires';
    const 
TYPE_DEV_REQUIRE 'devRequires';
    const 
TYPE_PROVIDE 'provides';
    const 
TYPE_CONFLICT 'conflicts';
    const 
TYPE_REPLACE 'replaces';

    
/**
     * Will be converted into a constant once the min PHP version allows this
     *
     * @internal
     * @var string[]
     */
    
public static $TYPES = array(
        
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 self::TYPE_* $description
     */
    
protected $description;

    
/**
     * @var string|null
     */
    
protected $prettyConstraint;

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

    
/**
     * @return string
     */
    
public function getDescription()
    {
        return 
$this->description;
    }

    
/**
     * @return string
     */
    
public function getSource()
    {
        return 
$this->source;
    }

    
/**
     * @return string
     */
    
public function getTarget()
    {
        return 
$this->target;
    }

    
/**
     * @return ConstraintInterface
     */
    
public function getConstraint()
    {
        return 
$this->constraint;
    }

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

        return 
$this->prettyConstraint;
    }

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

    
/**
     * @param  PackageInterface $sourcePackage
     * @return string
     */
    
public function getPrettyString(PackageInterface $sourcePackage)
    {
        return 
$sourcePackage->getPrettyString().' '.$this->description.' '.$this->target.($this->constraint ' '.$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.0054 ]--