class RootAliasPackage
@author Jordi Boggiano <j.boggiano@seld.be>
Hierarchy
- class \Composer\Package\BasePackage implements \Composer\Package\PackageInterface
- class \Composer\Package\AliasPackage extends \Composer\Package\BasePackage
- class \Composer\Package\CompleteAliasPackage extends \Composer\Package\AliasPackage implements \Composer\Package\CompletePackageInterface
- class \Composer\Package\RootAliasPackage extends \Composer\Package\CompleteAliasPackage implements \Composer\Package\RootPackageInterface
- class \Composer\Package\CompleteAliasPackage extends \Composer\Package\AliasPackage implements \Composer\Package\CompletePackageInterface
- class \Composer\Package\AliasPackage extends \Composer\Package\BasePackage
Expanded class hierarchy of RootAliasPackage
6 files declare their use of RootAliasPackage
- ArrayLoader.php in vendor/
composer/ composer/ src/ Composer/ Package/ Loader/ ArrayLoader.php - FilesystemRepository.php in vendor/
composer/ composer/ src/ Composer/ Repository/ FilesystemRepository.php - Installer.php in vendor/
composer/ composer/ src/ Composer/ Installer.php - JsonLoader.php in vendor/
composer/ composer/ src/ Composer/ Package/ Loader/ JsonLoader.php - LoaderInterface.php in vendor/
composer/ composer/ src/ Composer/ Package/ Loader/ LoaderInterface.php
File
-
vendor/
composer/ composer/ src/ Composer/ Package/ RootAliasPackage.php, line 18
Namespace
Composer\PackageView source
class RootAliasPackage extends CompleteAliasPackage implements RootPackageInterface {
/** @var RootPackage */
protected $aliasOf;
/**
* All descendants' constructors should call this parent constructor
*
* @param RootPackage $aliasOf The package this package is an alias of
* @param string $version The version the alias must report
* @param string $prettyVersion The alias's non-normalized version
*/
public function __construct(RootPackage $aliasOf, string $version, string $prettyVersion) {
parent::__construct($aliasOf, $version, $prettyVersion);
}
/**
* @return RootPackage
*/
public function getAliasOf() {
return $this->aliasOf;
}
/**
* @inheritDoc
*/
public function getAliases() : array {
return $this->aliasOf
->getAliases();
}
/**
* @inheritDoc
*/
public function getMinimumStability() : string {
return $this->aliasOf
->getMinimumStability();
}
/**
* @inheritDoc
*/
public function getStabilityFlags() : array {
return $this->aliasOf
->getStabilityFlags();
}
/**
* @inheritDoc
*/
public function getReferences() : array {
return $this->aliasOf
->getReferences();
}
/**
* @inheritDoc
*/
public function getPreferStable() : bool {
return $this->aliasOf
->getPreferStable();
}
/**
* @inheritDoc
*/
public function getConfig() : array {
return $this->aliasOf
->getConfig();
}
/**
* @inheritDoc
*/
public function setRequires(array $requires) : void {
$this->requires = $this->replaceSelfVersionDependencies($requires, Link::TYPE_REQUIRE);
$this->aliasOf
->setRequires($requires);
}
/**
* @inheritDoc
*/
public function setDevRequires(array $devRequires) : void {
$this->devRequires = $this->replaceSelfVersionDependencies($devRequires, Link::TYPE_DEV_REQUIRE);
$this->aliasOf
->setDevRequires($devRequires);
}
/**
* @inheritDoc
*/
public function setConflicts(array $conflicts) : void {
$this->conflicts = $this->replaceSelfVersionDependencies($conflicts, Link::TYPE_CONFLICT);
$this->aliasOf
->setConflicts($conflicts);
}
/**
* @inheritDoc
*/
public function setProvides(array $provides) : void {
$this->provides = $this->replaceSelfVersionDependencies($provides, Link::TYPE_PROVIDE);
$this->aliasOf
->setProvides($provides);
}
/**
* @inheritDoc
*/
public function setReplaces(array $replaces) : void {
$this->replaces = $this->replaceSelfVersionDependencies($replaces, Link::TYPE_REPLACE);
$this->aliasOf
->setReplaces($replaces);
}
/**
* @inheritDoc
*/
public function setAutoload(array $autoload) : void {
$this->aliasOf
->setAutoload($autoload);
}
/**
* @inheritDoc
*/
public function setDevAutoload(array $devAutoload) : void {
$this->aliasOf
->setDevAutoload($devAutoload);
}
/**
* @inheritDoc
*/
public function setStabilityFlags(array $stabilityFlags) : void {
$this->aliasOf
->setStabilityFlags($stabilityFlags);
}
/**
* @inheritDoc
*/
public function setMinimumStability(string $minimumStability) : void {
$this->aliasOf
->setMinimumStability($minimumStability);
}
/**
* @inheritDoc
*/
public function setPreferStable(bool $preferStable) : void {
$this->aliasOf
->setPreferStable($preferStable);
}
/**
* @inheritDoc
*/
public function setConfig(array $config) : void {
$this->aliasOf
->setConfig($config);
}
/**
* @inheritDoc
*/
public function setReferences(array $references) : void {
$this->aliasOf
->setReferences($references);
}
/**
* @inheritDoc
*/
public function setAliases(array $aliases) : void {
$this->aliasOf
->setAliases($aliases);
}
/**
* @inheritDoc
*/
public function setSuggests(array $suggests) : void {
$this->aliasOf
->setSuggests($suggests);
}
/**
* @inheritDoc
*/
public function setExtra(array $extra) : void {
$this->aliasOf
->setExtra($extra);
}
public function __clone() {
parent::__clone();
$this->aliasOf = clone $this->aliasOf;
}
}
Members
Title Sort descending | Deprecated | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|---|
AliasPackage::$conflicts | protected | property | @var Link[] | ||
AliasPackage::$dev | protected | property | @var bool | ||
AliasPackage::$devRequires | protected | property | @var Link[] | ||
AliasPackage::$hasSelfVersionRequires | protected | property | @var bool | ||
AliasPackage::$prettyVersion | protected | property | @var string | ||
AliasPackage::$provides | protected | property | @var Link[] | ||
AliasPackage::$replaces | protected | property | @var Link[] | ||
AliasPackage::$requires | protected | property | @var Link[] | ||
AliasPackage::$rootPackageAlias | protected | property | @var bool | ||
AliasPackage::$stability | protected | property | @phpstan-var 'stable'|'RC'|'beta'|'alpha'|'dev' | ||
AliasPackage::$version | protected | property | @var string | ||
AliasPackage::getAutoload | public | function | Returns an associative array of autoloading rules | Overrides PackageInterface::getAutoload | |
AliasPackage::getBinaries | public | function | Returns the package binaries | Overrides PackageInterface::getBinaries | |
AliasPackage::getConflicts | public | function | @inheritDoc | Overrides PackageInterface::getConflicts | |
AliasPackage::getDevAutoload | public | function | Returns an associative array of dev autoloading rules | Overrides PackageInterface::getDevAutoload | |
AliasPackage::getDevRequires | public | function | @inheritDoc | Overrides PackageInterface::getDevRequires | |
AliasPackage::getDistMirrors | public | function | Returns the dist mirrors of this package | Overrides PackageInterface::getDistMirrors | |
AliasPackage::getDistReference | public | function | Returns the reference of the distribution archive of this version, e.g. master, 1.0.0 or a commit hash for git | Overrides PackageInterface::getDistReference | |
AliasPackage::getDistSha1Checksum | public | function | Returns the sha1 checksum for the distribution archive of this version | Overrides PackageInterface::getDistSha1Checksum | |
AliasPackage::getDistType | public | function | Returns the type of the distribution archive of this version, e.g. zip, tarball | Overrides PackageInterface::getDistType | |
AliasPackage::getDistUrl | public | function | Returns the url of the distribution archive of this version | Overrides PackageInterface::getDistUrl | |
AliasPackage::getDistUrls | public | function | Returns the urls of the distribution archive of this version, including mirrors | Overrides PackageInterface::getDistUrls | |
AliasPackage::getExtra | public | function | Returns the package extra data | Overrides PackageInterface::getExtra | |
AliasPackage::getIncludePaths | public | function | Returns a list of directories which should get added to PHP's include path. |
Overrides PackageInterface::getIncludePaths | |
AliasPackage::getInstallationSource | public | function | Returns source from which this package was installed (source/dist). | Overrides PackageInterface::getInstallationSource | |
AliasPackage::getNotificationUrl | public | function | Returns the package notification url | Overrides PackageInterface::getNotificationUrl | |
AliasPackage::getPhpExt | public | function | Returns the settings for php extension packages | Overrides PackageInterface::getPhpExt | |
AliasPackage::getPrettyVersion | public | function | @inheritDoc | Overrides PackageInterface::getPrettyVersion | |
AliasPackage::getProvides | public | function | @inheritDoc | Overrides PackageInterface::getProvides | |
AliasPackage::getReleaseDate | public | function | Returns the release date of the package | Overrides PackageInterface::getReleaseDate | |
AliasPackage::getReplaces | public | function | @inheritDoc | Overrides PackageInterface::getReplaces | |
AliasPackage::getRequires | public | function | @inheritDoc | Overrides PackageInterface::getRequires | |
AliasPackage::getSourceMirrors | public | function | Returns the source mirrors of this package | Overrides PackageInterface::getSourceMirrors | |
AliasPackage::getSourceReference | public | function | Returns the repository reference of this package, e.g. master, 1.0.0 or a commit hash for git | Overrides PackageInterface::getSourceReference | |
AliasPackage::getSourceType | public | function | Returns the repository type of this package, e.g. git, svn | Overrides PackageInterface::getSourceType | |
AliasPackage::getSourceUrl | public | function | Returns the repository url of this package, e.g. git://github.com/naderman/composer.git | Overrides PackageInterface::getSourceUrl | |
AliasPackage::getSourceUrls | public | function | Returns the repository urls of this package including mirrors, e.g. git://github.com/naderman/composer.git | Overrides PackageInterface::getSourceUrls | |
AliasPackage::getStability | public | function | @inheritDoc | Overrides PackageInterface::getStability | |
AliasPackage::getSuggests | public | function | Returns a set of package names and reasons why they are useful in combination with this package. |
Overrides PackageInterface::getSuggests | |
AliasPackage::getTargetDir | public | function | Returns the package targetDir property | Overrides PackageInterface::getTargetDir | |
AliasPackage::getTransportOptions | public | function | Returns a list of options to download package dist files | Overrides PackageInterface::getTransportOptions | |
AliasPackage::getType | public | function | Returns the package type, e.g. library | Overrides PackageInterface::getType | |
AliasPackage::getVersion | public | function | @inheritDoc | Overrides PackageInterface::getVersion | |
AliasPackage::hasSelfVersionRequires | public | function | |||
AliasPackage::isDefaultBranch | public | function | Overrides PackageInterface::isDefaultBranch | ||
AliasPackage::isDev | public | function | @inheritDoc | Overrides PackageInterface::isDev | |
AliasPackage::isRootPackageAlias | public | function | |||
AliasPackage::replaceSelfVersionDependencies | protected | function | |||
AliasPackage::setDistMirrors | public | function | Overrides PackageInterface::setDistMirrors | ||
AliasPackage::setDistReference | public | function | Overrides PackageInterface::setDistReference | ||
AliasPackage::setDistType | public | function | Overrides PackageInterface::setDistType | ||
AliasPackage::setDistUrl | public | function | Overrides PackageInterface::setDistUrl | ||
AliasPackage::setInstallationSource | public | function | Sets source from which this package was installed (source/dist). | Overrides PackageInterface::setInstallationSource | |
AliasPackage::setRootPackageAlias | public | function | Stores whether this is an alias created by an aliasing in the requirements of the root package or not | ||
AliasPackage::setSourceDistReferences | public | function | Set dist and source references and update dist URL for ones that contain a reference | Overrides PackageInterface::setSourceDistReferences | |
AliasPackage::setSourceMirrors | public | function | Overrides PackageInterface::setSourceMirrors | ||
AliasPackage::setSourceReference | public | function | Overrides PackageInterface::setSourceReference | ||
AliasPackage::setTransportOptions | public | function | Configures the list of options to download package dist files | Overrides PackageInterface::setTransportOptions | |
AliasPackage::__toString | public | function | Converts the package into a readable and unique string | Overrides BasePackage::__toString | |
BasePackage::$id | public | property | READ-ONLY: The package id, public for fast access in dependency solver @internal |
||
BasePackage::$name | protected | property | @var string | ||
BasePackage::$prettyName | protected | property | @var string | ||
BasePackage::$repository | protected | property | @var ?RepositoryInterface | ||
BasePackage::$stabilities | Deprecated | public static | property | @phpstan-ignore property.readOnlyByPhpDocDefaultValue | |
BasePackage::$supportedLinkTypes | public static | property | @phpstan-var array<non-empty-string, array{description: string, method: Link::TYPE_*}> @internal |
||
BasePackage::equals | public | function | |||
BasePackage::getFullPrettyVersion | public | function | @inheritDoc | Overrides PackageInterface::getFullPrettyVersion | |
BasePackage::getId | public | function | @inheritDoc | Overrides PackageInterface::getId | |
BasePackage::getName | public | function | @inheritDoc | Overrides PackageInterface::getName | |
BasePackage::getNames | public | function | @inheritDoc | Overrides PackageInterface::getNames | |
BasePackage::getPrettyName | public | function | @inheritDoc | Overrides PackageInterface::getPrettyName | |
BasePackage::getPrettyString | public | function | Converts the package into a pretty readable string | Overrides PackageInterface::getPrettyString | |
BasePackage::getRepository | public | function | @inheritDoc | Overrides PackageInterface::getRepository | |
BasePackage::getStabilityPriority | public | function | @phpstan-return self::STABILITY_* | ||
BasePackage::getUniqueName | public | function | Returns package unique name, constructed from name, version and release type. | Overrides PackageInterface::getUniqueName | |
BasePackage::isPlatform | public | function | checks if this package is a platform package | ||
BasePackage::packageNamesToRegexp | public static | function | Build a regexp from package names, expanding * globs as required | ||
BasePackage::packageNameToRegexp | public static | function | Build a regexp from a package name, expanding * globs as required | ||
BasePackage::setId | public | function | @inheritDoc | Overrides PackageInterface::setId | |
BasePackage::setRepository | public | function | @inheritDoc | Overrides PackageInterface::setRepository | |
BasePackage::STABILITIES | public | constant | |||
BasePackage::STABILITY_ALPHA | public | constant | |||
BasePackage::STABILITY_BETA | public | constant | |||
BasePackage::STABILITY_DEV | public | constant | |||
BasePackage::STABILITY_RC | public | constant | |||
BasePackage::STABILITY_STABLE | public | constant | |||
CompleteAliasPackage::getArchiveExcludes | public | function | Returns a list of patterns to exclude from package archives | Overrides CompletePackageInterface::getArchiveExcludes | |
CompleteAliasPackage::getArchiveName | public | function | Returns default base filename for archive | Overrides CompletePackageInterface::getArchiveName | |
CompleteAliasPackage::getAuthors | public | function | Returns an array of authors of the package | Overrides CompletePackageInterface::getAuthors | |
CompleteAliasPackage::getDescription | public | function | Returns the package description | Overrides CompletePackageInterface::getDescription | |
CompleteAliasPackage::getFunding | public | function | Returns an array of funding options for the package | Overrides CompletePackageInterface::getFunding | |
CompleteAliasPackage::getHomepage | public | function | Returns the package homepage | Overrides CompletePackageInterface::getHomepage | |
CompleteAliasPackage::getKeywords | public | function | Returns an array of keywords relating to the package | Overrides CompletePackageInterface::getKeywords | |
CompleteAliasPackage::getLicense | public | function | Returns the package license, e.g. MIT, BSD, GPL | Overrides CompletePackageInterface::getLicense | |
CompleteAliasPackage::getReplacementPackage | public | function | If the package is abandoned and has a suggested replacement, this method returns it | Overrides CompletePackageInterface::getReplacementPackage | |
CompleteAliasPackage::getRepositories | public | function | Returns an array of repositories | Overrides CompletePackageInterface::getRepositories | |
CompleteAliasPackage::getScripts | public | function | Returns the scripts of this package | Overrides CompletePackageInterface::getScripts | |
CompleteAliasPackage::getSupport | public | function | Returns the support information | Overrides CompletePackageInterface::getSupport | |
CompleteAliasPackage::isAbandoned | public | function | Returns if the package is abandoned or not | Overrides CompletePackageInterface::isAbandoned | |
CompleteAliasPackage::setAbandoned | public | function | Overrides CompletePackageInterface::setAbandoned | ||
CompleteAliasPackage::setArchiveExcludes | public | function | Sets a list of patterns to be excluded from archives | Overrides CompletePackageInterface::setArchiveExcludes | |
CompleteAliasPackage::setArchiveName | public | function | Sets default base filename for archive | Overrides CompletePackageInterface::setArchiveName | |
CompleteAliasPackage::setAuthors | public | function | Set the authors | Overrides CompletePackageInterface::setAuthors | |
CompleteAliasPackage::setDescription | public | function | Set the description | Overrides CompletePackageInterface::setDescription | |
CompleteAliasPackage::setFunding | public | function | Set the funding | Overrides CompletePackageInterface::setFunding | |
CompleteAliasPackage::setHomepage | public | function | Set the homepage | Overrides CompletePackageInterface::setHomepage | |
CompleteAliasPackage::setKeywords | public | function | Set the keywords | Overrides CompletePackageInterface::setKeywords | |
CompleteAliasPackage::setLicense | public | function | Set the license | Overrides CompletePackageInterface::setLicense | |
CompleteAliasPackage::setRepositories | public | function | Set the repositories | Overrides CompletePackageInterface::setRepositories | |
CompleteAliasPackage::setScripts | public | function | Overrides CompletePackageInterface::setScripts | ||
CompleteAliasPackage::setSupport | public | function | Set the support information | Overrides CompletePackageInterface::setSupport | |
PackageInterface::DISPLAY_DIST_REF | public | constant | |||
PackageInterface::DISPLAY_SOURCE_REF | public | constant | |||
PackageInterface::DISPLAY_SOURCE_REF_IF_DEV | public | constant | |||
RootAliasPackage::$aliasOf | protected | property | @var RootPackage | Overrides CompleteAliasPackage::$aliasOf | |
RootAliasPackage::getAliases | public | function | @inheritDoc | Overrides RootPackageInterface::getAliases | |
RootAliasPackage::getAliasOf | public | function | Overrides CompleteAliasPackage::getAliasOf | ||
RootAliasPackage::getConfig | public | function | @inheritDoc | Overrides RootPackageInterface::getConfig | |
RootAliasPackage::getMinimumStability | public | function | @inheritDoc | Overrides RootPackageInterface::getMinimumStability | |
RootAliasPackage::getPreferStable | public | function | @inheritDoc | Overrides RootPackageInterface::getPreferStable | |
RootAliasPackage::getReferences | public | function | @inheritDoc | Overrides RootPackageInterface::getReferences | |
RootAliasPackage::getStabilityFlags | public | function | @inheritDoc | Overrides RootPackageInterface::getStabilityFlags | |
RootAliasPackage::setAliases | public | function | @inheritDoc | Overrides RootPackageInterface::setAliases | |
RootAliasPackage::setAutoload | public | function | @inheritDoc | Overrides RootPackageInterface::setAutoload | |
RootAliasPackage::setConfig | public | function | @inheritDoc | Overrides RootPackageInterface::setConfig | |
RootAliasPackage::setConflicts | public | function | @inheritDoc | Overrides RootPackageInterface::setConflicts | |
RootAliasPackage::setDevAutoload | public | function | @inheritDoc | Overrides RootPackageInterface::setDevAutoload | |
RootAliasPackage::setDevRequires | public | function | @inheritDoc | Overrides RootPackageInterface::setDevRequires | |
RootAliasPackage::setExtra | public | function | @inheritDoc | Overrides RootPackageInterface::setExtra | |
RootAliasPackage::setMinimumStability | public | function | @inheritDoc | Overrides RootPackageInterface::setMinimumStability | |
RootAliasPackage::setPreferStable | public | function | @inheritDoc | Overrides RootPackageInterface::setPreferStable | |
RootAliasPackage::setProvides | public | function | @inheritDoc | Overrides RootPackageInterface::setProvides | |
RootAliasPackage::setReferences | public | function | @inheritDoc | Overrides RootPackageInterface::setReferences | |
RootAliasPackage::setReplaces | public | function | @inheritDoc | Overrides RootPackageInterface::setReplaces | |
RootAliasPackage::setRequires | public | function | @inheritDoc | Overrides RootPackageInterface::setRequires | |
RootAliasPackage::setStabilityFlags | public | function | @inheritDoc | Overrides RootPackageInterface::setStabilityFlags | |
RootAliasPackage::setSuggests | public | function | @inheritDoc | Overrides RootPackageInterface::setSuggests | |
RootAliasPackage::__clone | public | function | Overrides BasePackage::__clone | ||
RootAliasPackage::__construct | public | function | All descendants' constructors should call this parent constructor | Overrides CompleteAliasPackage::__construct |