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

Breadcrumb

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

function AliasPackage::__construct

All descendants' constructors should call this parent constructor

Parameters

BasePackage $aliasOf The package this package is an alias of:

string $version The version the alias must report:

string $prettyVersion The alias's non-normalized version:

Overrides BasePackage::__construct

2 calls to AliasPackage::__construct()
CompleteAliasPackage::__construct in vendor/composer/composer/src/Composer/Package/CompleteAliasPackage.php
All descendants' constructors should call this parent constructor
CompleteAliasPackage::__construct in vendor/composer/composer/src/Composer/Package/CompleteAliasPackage.php
All descendants' constructors should call this parent constructor
1 method overrides AliasPackage::__construct()
CompleteAliasPackage::__construct in vendor/composer/composer/src/Composer/Package/CompleteAliasPackage.php
All descendants' constructors should call this parent constructor

File

vendor/composer/composer/src/Composer/Package/AliasPackage.php, line 59

Class

AliasPackage
@author Jordi Boggiano <j.boggiano@seld.be>

Namespace

Composer\Package

Code

public function __construct(BasePackage $aliasOf, string $version, string $prettyVersion) {
    parent::__construct($aliasOf->getName());
    $this->version = $version;
    $this->prettyVersion = $prettyVersion;
    $this->aliasOf = $aliasOf;
    $this->stability = VersionParser::parseStability($version);
    $this->dev = $this->stability === 'dev';
    foreach (Link::$TYPES as $type) {
        $links = $aliasOf->{'get' . ucfirst($type)}();
        $this->{$type} = $this->replaceSelfVersionDependencies($links, $type);
    }
}

API Navigation

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