Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CompleteAliasPackage.php

class CompleteAliasPackage

@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

Expanded class hierarchy of CompleteAliasPackage

7 files declare their use of CompleteAliasPackage
ArrayLoader.php in vendor/composer/composer/src/Composer/Package/Loader/ArrayLoader.php
ArrayRepository.php in vendor/composer/composer/src/Composer/Repository/ArrayRepository.php
ComposerRepository.php in vendor/composer/composer/src/Composer/Repository/ComposerRepository.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

... See full list

File

vendor/composer/composer/src/Composer/Package/CompleteAliasPackage.php, line 18

Namespace

Composer\Package
View source
class CompleteAliasPackage extends AliasPackage implements CompletePackageInterface {
    
    /** @var CompletePackage */
    protected $aliasOf;
    
    /**
     * All descendants' constructors should call this parent constructor
     *
     * @param CompletePackage $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(CompletePackage $aliasOf, string $version, string $prettyVersion) {
        parent::__construct($aliasOf, $version, $prettyVersion);
    }
    
    /**
     * @return CompletePackage
     */
    public function getAliasOf() {
        return $this->aliasOf;
    }
    public function getScripts() : array {
        return $this->aliasOf
            ->getScripts();
    }
    public function setScripts(array $scripts) : void {
        $this->aliasOf
            ->setScripts($scripts);
    }
    public function getRepositories() : array {
        return $this->aliasOf
            ->getRepositories();
    }
    public function setRepositories(array $repositories) : void {
        $this->aliasOf
            ->setRepositories($repositories);
    }
    public function getLicense() : array {
        return $this->aliasOf
            ->getLicense();
    }
    public function setLicense(array $license) : void {
        $this->aliasOf
            ->setLicense($license);
    }
    public function getKeywords() : array {
        return $this->aliasOf
            ->getKeywords();
    }
    public function setKeywords(array $keywords) : void {
        $this->aliasOf
            ->setKeywords($keywords);
    }
    public function getDescription() : ?string {
        return $this->aliasOf
            ->getDescription();
    }
    public function setDescription(?string $description) : void {
        $this->aliasOf
            ->setDescription($description);
    }
    public function getHomepage() : ?string {
        return $this->aliasOf
            ->getHomepage();
    }
    public function setHomepage(?string $homepage) : void {
        $this->aliasOf
            ->setHomepage($homepage);
    }
    public function getAuthors() : array {
        return $this->aliasOf
            ->getAuthors();
    }
    public function setAuthors(array $authors) : void {
        $this->aliasOf
            ->setAuthors($authors);
    }
    public function getSupport() : array {
        return $this->aliasOf
            ->getSupport();
    }
    public function setSupport(array $support) : void {
        $this->aliasOf
            ->setSupport($support);
    }
    public function getFunding() : array {
        return $this->aliasOf
            ->getFunding();
    }
    public function setFunding(array $funding) : void {
        $this->aliasOf
            ->setFunding($funding);
    }
    public function isAbandoned() : bool {
        return $this->aliasOf
            ->isAbandoned();
    }
    public function getReplacementPackage() : ?string {
        return $this->aliasOf
            ->getReplacementPackage();
    }
    public function setAbandoned($abandoned) : void {
        $this->aliasOf
            ->setAbandoned($abandoned);
    }
    public function getArchiveName() : ?string {
        return $this->aliasOf
            ->getArchiveName();
    }
    public function setArchiveName(?string $name) : void {
        $this->aliasOf
            ->setArchiveName($name);
    }
    public function getArchiveExcludes() : array {
        return $this->aliasOf
            ->getArchiveExcludes();
    }
    public function setArchiveExcludes(array $excludes) : void {
        $this->aliasOf
            ->setArchiveExcludes($excludes);
    }

}

Members

Title Sort descending Deprecated Modifiers Object type Summary Overriden Title Overrides
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 &#039;stable&#039;|&#039;RC&#039;|&#039;beta&#039;|&#039;alpha&#039;|&#039;dev&#039;
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&#039;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&lt;non-empty-string, array{description: string, method: Link::TYPE_*}&gt;
@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
BasePackage::__clone public function 1
CompleteAliasPackage::$aliasOf protected property @var CompletePackage Overrides AliasPackage::$aliasOf 1
CompleteAliasPackage::getAliasOf public function Overrides AliasPackage::getAliasOf 1
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
CompleteAliasPackage::__construct public function All descendants&#039; constructors should call this parent constructor Overrides AliasPackage::__construct 1
PackageInterface::DISPLAY_DIST_REF public constant
PackageInterface::DISPLAY_SOURCE_REF public constant
PackageInterface::DISPLAY_SOURCE_REF_IF_DEV public constant

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal