function InstalledPackage::__construct

Constructs an InstalledPackage object.

Parameters

string $name: The package name.

string $version: The package version.

string|null $path: The package path, or NULL if the package type is `metapackage`.

string $type: The package type.

File

core/modules/package_manager/src/InstalledPackage.php, line 26

Class

InstalledPackage
A value object that represents an installed Composer package.

Namespace

Drupal\package_manager

Code

private function __construct(string $name, string $version, ?string $path, string $type) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.