class Package
Core package definitions that are needed to resolve dependencies and install packages
@author Nils Adermann <naderman@naderman.de>
@phpstan-import-type AutoloadRules from PackageInterface @phpstan-import-type DevAutoloadRules from PackageInterface
Hierarchy
- class \Composer\Package\BasePackage implements \Composer\Package\PackageInterface
- class \Composer\Package\Package extends \Composer\Package\BasePackage
Expanded class hierarchy of Package
7 files declare their use of Package
- BaseDependencyCommand.php in vendor/
composer/ composer/ src/ Composer/ Command/ BaseDependencyCommand.php - InitCommand.php in vendor/
composer/ composer/ src/ Composer/ Command/ InitCommand.php - Installer.php in vendor/
composer/ installers/ src/ Composer/ Installers/ Installer.php - Installer.php in vendor/
composer/ composer/ src/ Composer/ Installer.php - LockTransaction.php in vendor/
composer/ composer/ src/ Composer/ DependencyResolver/ LockTransaction.php
20 string references to 'Package'
- ArchiveCommand::execute in vendor/
composer/ composer/ src/ Composer/ Command/ ArchiveCommand.php - Executes the current command.
- Auditor::outputAdvisoriesTable in vendor/
composer/ composer/ src/ Composer/ Advisory/ Auditor.php - Clover::process in vendor/
phpunit/ php-code-coverage/ src/ Report/ Clover.php - Cobertura::process in vendor/
phpunit/ php-code-coverage/ src/ Report/ Cobertura.php - Crap4j::process in vendor/
phpunit/ php-code-coverage/ src/ Report/ Crap4j.php
File
-
vendor/
composer/ composer/ src/ Composer/ Package/ Package.php, line 27
Namespace
Composer\PackageView source
class Package extends BasePackage {
/** @var string */
protected $type;
/** @var ?string */
protected $targetDir;
/** @var 'source'|'dist'|null */
protected $installationSource;
/** @var ?string */
protected $sourceType;
/** @var ?string */
protected $sourceUrl;
/** @var ?string */
protected $sourceReference;
/** @var ?list<array{url: non-empty-string, preferred: bool}> */
protected $sourceMirrors;
/** @var ?non-empty-string */
protected $distType;
/** @var ?non-empty-string */
protected $distUrl;
/** @var ?string */
protected $distReference;
/** @var ?string */
protected $distSha1Checksum;
/** @var ?list<array{url: non-empty-string, preferred: bool}> */
protected $distMirrors;
/** @var string */
protected $version;
/** @var string */
protected $prettyVersion;
/** @var ?\DateTimeInterface */
protected $releaseDate;
/** @var mixed[] */
protected $extra = [];
/** @var string[] */
protected $binaries = [];
/** @var bool */
protected $dev;
/**
* @var string
* @phpstan-var 'stable'|'RC'|'beta'|'alpha'|'dev'
*/
protected $stability;
/** @var ?string */
protected $notificationUrl;
/** @var array<string, Link> */
protected $requires = [];
/** @var array<string, Link> */
protected $conflicts = [];
/** @var array<string, Link> */
protected $provides = [];
/** @var array<string, Link> */
protected $replaces = [];
/** @var array<string, Link> */
protected $devRequires = [];
/** @var array<string, string> */
protected $suggests = [];
/**
* @var array
* @phpstan-var AutoloadRules
*/
protected $autoload = [];
/**
* @var array
* @phpstan-var DevAutoloadRules
*/
protected $devAutoload = [];
/** @var string[] */
protected $includePaths = [];
/** @var bool */
protected $isDefaultBranch = false;
/** @var mixed[] */
protected $transportOptions = [];
/** @var array{priority?: int, configure-options?: list<array{name: string, description?: string}>}|null */
protected $phpExt = null;
/**
* Creates a new in memory package.
*
* @param string $name The package's name
* @param string $version The package's version
* @param string $prettyVersion The package's non-normalized version
*/
public function __construct(string $name, string $version, string $prettyVersion) {
parent::__construct($name);
$this->version = $version;
$this->prettyVersion = $prettyVersion;
$this->stability = VersionParser::parseStability($version);
$this->dev = $this->stability === 'dev';
}
/**
* @inheritDoc
*/
public function isDev() : bool {
return $this->dev;
}
public function setType(string $type) : void {
$this->type = $type;
}
/**
* @inheritDoc
*/
public function getType() : string {
return $this->type ?: 'library';
}
/**
* @inheritDoc
*/
public function getStability() : string {
return $this->stability;
}
public function setTargetDir(?string $targetDir) : void {
$this->targetDir = $targetDir;
}
/**
* @inheritDoc
*/
public function getTargetDir() : ?string {
if (null === $this->targetDir) {
return null;
}
return ltrim(Preg::replace('{ (?:^|[\\\\/]+) \\.\\.? (?:[\\\\/]+|$) (?:\\.\\.? (?:[\\\\/]+|$) )*}x', '/', $this->targetDir), '/');
}
/**
* @param mixed[] $extra
*/
public function setExtra(array $extra) : void {
$this->extra = $extra;
}
/**
* @inheritDoc
*/
public function getExtra() : array {
return $this->extra;
}
/**
* @param string[] $binaries
*/
public function setBinaries(array $binaries) : void {
$this->binaries = $binaries;
}
/**
* @inheritDoc
*/
public function getBinaries() : array {
return $this->binaries;
}
/**
* @inheritDoc
*/
public function setInstallationSource(?string $type) : void {
$this->installationSource = $type;
}
/**
* @inheritDoc
*/
public function getInstallationSource() : ?string {
return $this->installationSource;
}
public function setSourceType(?string $type) : void {
$this->sourceType = $type;
}
/**
* @inheritDoc
*/
public function getSourceType() : ?string {
return $this->sourceType;
}
public function setSourceUrl(?string $url) : void {
$this->sourceUrl = $url;
}
/**
* @inheritDoc
*/
public function getSourceUrl() : ?string {
return $this->sourceUrl;
}
public function setSourceReference(?string $reference) : void {
$this->sourceReference = $reference;
}
/**
* @inheritDoc
*/
public function getSourceReference() : ?string {
return $this->sourceReference;
}
public function setSourceMirrors(?array $mirrors) : void {
$this->sourceMirrors = $mirrors;
}
/**
* @inheritDoc
*/
public function getSourceMirrors() : ?array {
return $this->sourceMirrors;
}
/**
* @inheritDoc
*/
public function getSourceUrls() : array {
return $this->getUrls($this->sourceUrl, $this->sourceMirrors, $this->sourceReference, $this->sourceType, 'source');
}
/**
* @param string $type
*/
public function setDistType(?string $type) : void {
$this->distType = $type === '' ? null : $type;
}
/**
* @inheritDoc
*/
public function getDistType() : ?string {
return $this->distType;
}
/**
* @param string|null $url
*/
public function setDistUrl(?string $url) : void {
$this->distUrl = $url === '' ? null : $url;
}
/**
* @inheritDoc
*/
public function getDistUrl() : ?string {
return $this->distUrl;
}
/**
* @param string $reference
*/
public function setDistReference(?string $reference) : void {
$this->distReference = $reference;
}
/**
* @inheritDoc
*/
public function getDistReference() : ?string {
return $this->distReference;
}
/**
* @param string $sha1checksum
*/
public function setDistSha1Checksum(?string $sha1checksum) : void {
$this->distSha1Checksum = $sha1checksum;
}
/**
* @inheritDoc
*/
public function getDistSha1Checksum() : ?string {
return $this->distSha1Checksum;
}
public function setDistMirrors(?array $mirrors) : void {
$this->distMirrors = $mirrors;
}
/**
* @inheritDoc
*/
public function getDistMirrors() : ?array {
return $this->distMirrors;
}
/**
* @inheritDoc
*/
public function getDistUrls() : array {
return $this->getUrls($this->distUrl, $this->distMirrors, $this->distReference, $this->distType, 'dist');
}
/**
* @inheritDoc
*/
public function getTransportOptions() : array {
return $this->transportOptions;
}
/**
* @inheritDoc
*/
public function setTransportOptions(array $options) : void {
$this->transportOptions = $options;
}
/**
* @inheritDoc
*/
public function getVersion() : string {
return $this->version;
}
/**
* @inheritDoc
*/
public function getPrettyVersion() : string {
return $this->prettyVersion;
}
public function setReleaseDate(?\DateTimeInterface $releaseDate) : void {
$this->releaseDate = $releaseDate;
}
/**
* @inheritDoc
*/
public function getReleaseDate() : ?\DateTimeInterface {
return $this->releaseDate;
}
/**
* Set the required packages
*
* @param array<string, Link> $requires A set of package links
*/
public function setRequires(array $requires) : void {
if (isset($requires[0])) {
// @phpstan-ignore-line
$requires = $this->convertLinksToMap($requires, 'setRequires');
}
$this->requires = $requires;
}
/**
* @inheritDoc
*/
public function getRequires() : array {
return $this->requires;
}
/**
* Set the conflicting packages
*
* @param array<string, Link> $conflicts A set of package links
*/
public function setConflicts(array $conflicts) : void {
if (isset($conflicts[0])) {
// @phpstan-ignore-line
$conflicts = $this->convertLinksToMap($conflicts, 'setConflicts');
}
$this->conflicts = $conflicts;
}
/**
* @inheritDoc
* @return array<string, Link>
*/
public function getConflicts() : array {
return $this->conflicts;
}
/**
* Set the provided virtual packages
*
* @param array<string, Link> $provides A set of package links
*/
public function setProvides(array $provides) : void {
if (isset($provides[0])) {
// @phpstan-ignore-line
$provides = $this->convertLinksToMap($provides, 'setProvides');
}
$this->provides = $provides;
}
/**
* @inheritDoc
* @return array<string, Link>
*/
public function getProvides() : array {
return $this->provides;
}
/**
* Set the packages this one replaces
*
* @param array<string, Link> $replaces A set of package links
*/
public function setReplaces(array $replaces) : void {
if (isset($replaces[0])) {
// @phpstan-ignore-line
$replaces = $this->convertLinksToMap($replaces, 'setReplaces');
}
$this->replaces = $replaces;
}
/**
* @inheritDoc
* @return array<string, Link>
*/
public function getReplaces() : array {
return $this->replaces;
}
/**
* Set the recommended packages
*
* @param array<string, Link> $devRequires A set of package links
*/
public function setDevRequires(array $devRequires) : void {
if (isset($devRequires[0])) {
// @phpstan-ignore-line
$devRequires = $this->convertLinksToMap($devRequires, 'setDevRequires');
}
$this->devRequires = $devRequires;
}
/**
* @inheritDoc
*/
public function getDevRequires() : array {
return $this->devRequires;
}
/**
* Set the suggested packages
*
* @param array<string, string> $suggests A set of package names/comments
*/
public function setSuggests(array $suggests) : void {
$this->suggests = $suggests;
}
/**
* @inheritDoc
*/
public function getSuggests() : array {
return $this->suggests;
}
/**
* Set the autoload mapping
*
* @param array $autoload Mapping of autoloading rules
*
* @phpstan-param AutoloadRules $autoload
*/
public function setAutoload(array $autoload) : void {
$this->autoload = $autoload;
}
/**
* @inheritDoc
*/
public function getAutoload() : array {
return $this->autoload;
}
/**
* Set the dev autoload mapping
*
* @param array $devAutoload Mapping of dev autoloading rules
*
* @phpstan-param DevAutoloadRules $devAutoload
*/
public function setDevAutoload(array $devAutoload) : void {
$this->devAutoload = $devAutoload;
}
/**
* @inheritDoc
*/
public function getDevAutoload() : array {
return $this->devAutoload;
}
/**
* Sets the list of paths added to PHP's include path.
*
* @param string[] $includePaths List of directories.
*/
public function setIncludePaths(array $includePaths) : void {
$this->includePaths = $includePaths;
}
/**
* @inheritDoc
*/
public function getIncludePaths() : array {
return $this->includePaths;
}
/**
* Sets the list of paths added to PHP's include path.
*
* @param array{extension-name?: string, priority?: int, support-zts?: bool, support-nts?: bool, configure-options?: list<array{name: string, description?: string}>}|null $phpExt List of directories.
*/
public function setPhpExt(?array $phpExt) : void {
$this->phpExt = $phpExt;
}
/**
* @inheritDoc
*/
public function getPhpExt() : ?array {
return $this->phpExt;
}
/**
* Sets the notification URL
*/
public function setNotificationUrl(string $notificationUrl) : void {
$this->notificationUrl = $notificationUrl;
}
/**
* @inheritDoc
*/
public function getNotificationUrl() : ?string {
return $this->notificationUrl;
}
public function setIsDefaultBranch(bool $defaultBranch) : void {
$this->isDefaultBranch = $defaultBranch;
}
/**
* @inheritDoc
*/
public function isDefaultBranch() : bool {
return $this->isDefaultBranch;
}
/**
* @inheritDoc
*/
public function setSourceDistReferences(string $reference) : void {
$this->setSourceReference($reference);
// only bitbucket, github and gitlab have auto generated dist URLs that easily allow replacing the reference in the dist URL
// TODO generalize this a bit for self-managed/on-prem versions? Some kind of replace token in dist urls which allow this?
if ($this->getDistUrl() !== null && Preg::isMatch('{^https?://(?:(?:www\\.)?bitbucket\\.org|(api\\.)?github\\.com|(?:www\\.)?gitlab\\.com)/}i', $this->getDistUrl())) {
$this->setDistReference($reference);
$this->setDistUrl(Preg::replace('{(?<=/|sha=)[a-f0-9]{40}(?=/|$)}i', $reference, $this->getDistUrl()));
}
elseif ($this->getDistReference()) {
// update the dist reference if there was one, but if none was provided ignore it
$this->setDistReference($reference);
}
}
/**
* Replaces current version and pretty version with passed values.
* It also sets stability.
*
* @param string $version The package's normalized version
* @param string $prettyVersion The package's non-normalized version
*/
public function replaceVersion(string $version, string $prettyVersion) : void {
$this->version = $version;
$this->prettyVersion = $prettyVersion;
$this->stability = VersionParser::parseStability($version);
$this->dev = $this->stability === 'dev';
}
/**
* @param mixed[]|null $mirrors
*
* @return list<non-empty-string>
*
* @phpstan-param list<array{url: non-empty-string, preferred: bool}>|null $mirrors
*/
protected function getUrls(?string $url, ?array $mirrors, ?string $ref, ?string $type, string $urlType) : array {
if (!$url) {
return [];
}
if ($urlType === 'dist' && false !== strpos($url, '%')) {
$url = ComposerMirror::processUrl($url, $this->name, $this->version, $ref, $type, $this->prettyVersion);
}
$urls = [
$url,
];
if ($mirrors) {
foreach ($mirrors as $mirror) {
if ($urlType === 'dist') {
$mirrorUrl = ComposerMirror::processUrl($mirror['url'], $this->name, $this->version, $ref, $type, $this->prettyVersion);
}
elseif ($urlType === 'source' && $type === 'git') {
$mirrorUrl = ComposerMirror::processGitUrl($mirror['url'], $this->name, $url, $type);
}
elseif ($urlType === 'source' && $type === 'hg') {
$mirrorUrl = ComposerMirror::processHgUrl($mirror['url'], $this->name, $url, $type);
}
else {
continue;
}
if (!\in_array($mirrorUrl, $urls)) {
$func = $mirror['preferred'] ? 'array_unshift' : 'array_push';
$func($urls, $mirrorUrl);
}
}
}
return $urls;
}
/**
* @param array<int, Link> $links
* @return array<string, Link>
*/
private function convertLinksToMap(array $links, string $source) : array {
trigger_error('Package::' . $source . ' must be called with a map of lowercased package name => Link object, got a indexed array, this is deprecated and you should fix your usage.');
$newLinks = [];
foreach ($links as $link) {
$newLinks[$link->getTarget()] = $link;
}
return $newLinks;
}
}
Members
Title Sort descending | Deprecated | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|---|
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<non-empty-string, array{description: string, method: Link::TYPE_*}> @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 | |||
BasePackage::__toString | public | function | Converts the package into a readable and unique string | Overrides PackageInterface::__toString | 1 | |
Package::$autoload | protected | property | @phpstan-var AutoloadRules | |||
Package::$binaries | protected | property | @var string[] | |||
Package::$conflicts | protected | property | @var array<string, Link> | |||
Package::$dev | protected | property | @var bool | |||
Package::$devAutoload | protected | property | @phpstan-var DevAutoloadRules | |||
Package::$devRequires | protected | property | @var array<string, Link> | |||
Package::$distMirrors | protected | property | @var ?list<array{url: non-empty-string, preferred: bool}> | |||
Package::$distReference | protected | property | @var ?string | |||
Package::$distSha1Checksum | protected | property | @var ?string | |||
Package::$distType | protected | property | @var ?non-empty-string | |||
Package::$distUrl | protected | property | @var ?non-empty-string | |||
Package::$extra | protected | property | @var mixed[] | |||
Package::$includePaths | protected | property | @var string[] | |||
Package::$installationSource | protected | property | @var 'source'|'dist'|null | |||
Package::$isDefaultBranch | protected | property | @var bool | |||
Package::$notificationUrl | protected | property | @var ?string | |||
Package::$phpExt | protected | property | @var array{priority?: int, configure-options?: list<array{name: string, description?: string}>}|null | |||
Package::$prettyVersion | protected | property | @var string | |||
Package::$provides | protected | property | @var array<string, Link> | |||
Package::$releaseDate | protected | property | @var ?\DateTimeInterface | |||
Package::$replaces | protected | property | @var array<string, Link> | |||
Package::$requires | protected | property | @var array<string, Link> | |||
Package::$sourceMirrors | protected | property | @var ?list<array{url: non-empty-string, preferred: bool}> | |||
Package::$sourceReference | protected | property | @var ?string | |||
Package::$sourceType | protected | property | @var ?string | |||
Package::$sourceUrl | protected | property | @var ?string | |||
Package::$stability | protected | property | @phpstan-var 'stable'|'RC'|'beta'|'alpha'|'dev' | |||
Package::$suggests | protected | property | @var array<string, string> | |||
Package::$targetDir | protected | property | @var ?string | |||
Package::$transportOptions | protected | property | @var mixed[] | |||
Package::$type | protected | property | @var string | |||
Package::$version | protected | property | @var string | |||
Package::convertLinksToMap | private | function | ||||
Package::getAutoload | public | function | @inheritDoc | Overrides PackageInterface::getAutoload | ||
Package::getBinaries | public | function | @inheritDoc | Overrides PackageInterface::getBinaries | ||
Package::getConflicts | public | function | @inheritDoc | Overrides PackageInterface::getConflicts | ||
Package::getDevAutoload | public | function | @inheritDoc | Overrides PackageInterface::getDevAutoload | ||
Package::getDevRequires | public | function | @inheritDoc | Overrides PackageInterface::getDevRequires | ||
Package::getDistMirrors | public | function | @inheritDoc | Overrides PackageInterface::getDistMirrors | ||
Package::getDistReference | public | function | @inheritDoc | Overrides PackageInterface::getDistReference | ||
Package::getDistSha1Checksum | public | function | @inheritDoc | Overrides PackageInterface::getDistSha1Checksum | ||
Package::getDistType | public | function | @inheritDoc | Overrides PackageInterface::getDistType | ||
Package::getDistUrl | public | function | @inheritDoc | Overrides PackageInterface::getDistUrl | ||
Package::getDistUrls | public | function | @inheritDoc | Overrides PackageInterface::getDistUrls | ||
Package::getExtra | public | function | @inheritDoc | Overrides PackageInterface::getExtra | ||
Package::getIncludePaths | public | function | @inheritDoc | Overrides PackageInterface::getIncludePaths | ||
Package::getInstallationSource | public | function | @inheritDoc | Overrides PackageInterface::getInstallationSource | ||
Package::getNotificationUrl | public | function | @inheritDoc | Overrides PackageInterface::getNotificationUrl | ||
Package::getPhpExt | public | function | @inheritDoc | Overrides PackageInterface::getPhpExt | ||
Package::getPrettyVersion | public | function | @inheritDoc | Overrides PackageInterface::getPrettyVersion | ||
Package::getProvides | public | function | @inheritDoc | Overrides PackageInterface::getProvides | ||
Package::getReleaseDate | public | function | @inheritDoc | Overrides PackageInterface::getReleaseDate | ||
Package::getReplaces | public | function | @inheritDoc | Overrides PackageInterface::getReplaces | ||
Package::getRequires | public | function | @inheritDoc | Overrides PackageInterface::getRequires | ||
Package::getSourceMirrors | public | function | @inheritDoc | Overrides PackageInterface::getSourceMirrors | ||
Package::getSourceReference | public | function | @inheritDoc | Overrides PackageInterface::getSourceReference | ||
Package::getSourceType | public | function | @inheritDoc | Overrides PackageInterface::getSourceType | ||
Package::getSourceUrl | public | function | @inheritDoc | Overrides PackageInterface::getSourceUrl | ||
Package::getSourceUrls | public | function | @inheritDoc | Overrides PackageInterface::getSourceUrls | ||
Package::getStability | public | function | @inheritDoc | Overrides PackageInterface::getStability | ||
Package::getSuggests | public | function | @inheritDoc | Overrides PackageInterface::getSuggests | ||
Package::getTargetDir | public | function | @inheritDoc | Overrides PackageInterface::getTargetDir | ||
Package::getTransportOptions | public | function | @inheritDoc | Overrides PackageInterface::getTransportOptions | ||
Package::getType | public | function | @inheritDoc | Overrides PackageInterface::getType | ||
Package::getUrls | protected | function | @phpstan-param list<array{url: non-empty-string, preferred: bool}>|null $mirrors | |||
Package::getVersion | public | function | @inheritDoc | Overrides PackageInterface::getVersion | ||
Package::isDefaultBranch | public | function | @inheritDoc | Overrides PackageInterface::isDefaultBranch | ||
Package::isDev | public | function | @inheritDoc | Overrides PackageInterface::isDev | ||
Package::replaceVersion | public | function | Replaces current version and pretty version with passed values. It also sets stability. |
|||
Package::setAutoload | public | function | Set the autoload mapping | |||
Package::setBinaries | public | function | ||||
Package::setConflicts | public | function | Set the conflicting packages | |||
Package::setDevAutoload | public | function | Set the dev autoload mapping | |||
Package::setDevRequires | public | function | Set the recommended packages | |||
Package::setDistMirrors | public | function | Overrides PackageInterface::setDistMirrors | |||
Package::setDistReference | public | function | Overrides PackageInterface::setDistReference | |||
Package::setDistSha1Checksum | public | function | ||||
Package::setDistType | public | function | Overrides PackageInterface::setDistType | |||
Package::setDistUrl | public | function | Overrides PackageInterface::setDistUrl | |||
Package::setExtra | public | function | ||||
Package::setIncludePaths | public | function | Sets the list of paths added to PHP's include path. | |||
Package::setInstallationSource | public | function | @inheritDoc | Overrides PackageInterface::setInstallationSource | ||
Package::setIsDefaultBranch | public | function | ||||
Package::setNotificationUrl | public | function | Sets the notification URL | |||
Package::setPhpExt | public | function | Sets the list of paths added to PHP's include path. | |||
Package::setProvides | public | function | Set the provided virtual packages | |||
Package::setReleaseDate | public | function | ||||
Package::setReplaces | public | function | Set the packages this one replaces | |||
Package::setRequires | public | function | Set the required packages | |||
Package::setSourceDistReferences | public | function | @inheritDoc | Overrides PackageInterface::setSourceDistReferences | ||
Package::setSourceMirrors | public | function | Overrides PackageInterface::setSourceMirrors | |||
Package::setSourceReference | public | function | Overrides PackageInterface::setSourceReference | |||
Package::setSourceType | public | function | ||||
Package::setSourceUrl | public | function | ||||
Package::setSuggests | public | function | Set the suggested packages | |||
Package::setTargetDir | public | function | ||||
Package::setTransportOptions | public | function | @inheritDoc | Overrides PackageInterface::setTransportOptions | ||
Package::setType | public | function | ||||
Package::__construct | public | function | Creates a new in memory package. | Overrides BasePackage::__construct | ||
PackageInterface::DISPLAY_DIST_REF | public | constant | ||||
PackageInterface::DISPLAY_SOURCE_REF | public | constant | ||||
PackageInterface::DISPLAY_SOURCE_REF_IF_DEV | public | constant |