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

Breadcrumb

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

function BasePackage::__construct

All descendants' constructors should call this parent constructor

Parameters

string $name The package's name:

4 calls to BasePackage::__construct()
AliasPackage::__construct in vendor/composer/composer/src/Composer/Package/AliasPackage.php
All descendants' constructors should call this parent constructor
AliasPackage::__construct in vendor/composer/composer/src/Composer/Package/AliasPackage.php
All descendants' constructors should call this parent constructor
Package::__construct in vendor/composer/composer/src/Composer/Package/Package.php
Creates a new in memory package.
Package::__construct in vendor/composer/composer/src/Composer/Package/Package.php
Creates a new in memory package.
2 methods override BasePackage::__construct()
AliasPackage::__construct in vendor/composer/composer/src/Composer/Package/AliasPackage.php
All descendants' constructors should call this parent constructor
Package::__construct in vendor/composer/composer/src/Composer/Package/Package.php
Creates a new in memory package.

File

vendor/composer/composer/src/Composer/Package/BasePackage.php, line 77

Class

BasePackage
Base class for packages providing name storage and default match implementation

Namespace

Composer\Package

Code

public function __construct(string $name) {
    $this->prettyName = $name;
    $this->name = strtolower($name);
    $this->id = -1;
}

API Navigation

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