Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
php /
Composer /
Package /
Delete
Unzip
Name
Size
Permission
Date
Action
Archiver
[ DIR ]
drwxr-xr-x
2026-07-12 06:24
Comparer
[ DIR ]
drwxr-xr-x
2026-07-12 06:24
Dumper
[ DIR ]
drwxr-xr-x
2026-07-12 06:24
Loader
[ DIR ]
drwxr-xr-x
2026-07-12 06:24
Version
[ DIR ]
drwxr-xr-x
2026-07-12 06:24
AliasPackage.php
9.59
KB
-rw-r--r--
2023-03-21 10:50
BasePackage.php
7.45
KB
-rw-r--r--
2023-03-21 10:50
CompleteAliasPackage.php
3.84
KB
-rw-r--r--
2023-03-21 10:50
CompletePackage.php
4.76
KB
-rw-r--r--
2023-03-21 10:50
CompletePackageInterface.php
4.69
KB
-rw-r--r--
2023-03-21 10:50
Link.php
3.55
KB
-rw-r--r--
2023-03-21 10:50
Locker.php
19.11
KB
-rw-r--r--
2023-03-21 10:50
Package.php
16.63
KB
-rw-r--r--
2023-03-21 10:50
PackageInterface.php
11.45
KB
-rw-r--r--
2023-03-21 10:50
RootAliasPackage.php
4.83
KB
-rw-r--r--
2023-03-21 10:50
RootPackage.php
2.78
KB
-rw-r--r--
2023-03-21 10:50
RootPackageInterface.php
4.37
KB
-rw-r--r--
2023-03-21 10:50
Save
Rename
<?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(); } }