Documentation

Versions
in package

This class is generated by composer/package-versions-deprecated, specifically by

Tags
see
Installer

This file is overwritten at every run of composer install or composer update.

deprecated

in favor of the Composer\InstalledVersions class provided by Composer 2. Require composer-runtime-api:^2 to ensure it is present.

Table of Contents

ROOT_PACKAGE_NAME  = 'agentejo/cockpit'
getVersion()  : string
rootPackageName()  : string
__construct()  : mixed
composer2ApiUsable()  : bool

Constants

ROOT_PACKAGE_NAME

public mixed ROOT_PACKAGE_NAME = 'agentejo/cockpit'
Tags
deprecated

please use self::rootPackageName() instead. This constant will be removed in version 2.0.0.

Methods

getVersion()

public static getVersion(string $packageName) : string
Parameters
$packageName : string
Tags
throws
OutOfBoundsException

If a version cannot be located.

psalm-param

key-ofself::VERSIONS $packageName

psalm-pure
psalm-suppress

ImpureMethodCall we know that InstalledVersions interaction does not cause any side effects here.

Return values
string

rootPackageName()

public static rootPackageName() : string
Tags
psalm-pure
psalm-suppress

ImpureMethodCall we know that InstalledVersions interaction does not cause any side effects here.

Return values
string

__construct()

private __construct() : mixed
Return values
mixed

composer2ApiUsable()

private static composer2ApiUsable() : bool
Return values
bool

Search results