function PackageInterface::getNames
Returns a set of names that could refer to this package
No version or release type information should be included in any of the names. Provided or replaced package names need to be returned as well.
Parameters
bool $provides Whether provided names should be included:
Return value
string[] An array of strings referring to this package
1 method overrides PackageInterface::getNames()
- BasePackage::getNames in vendor/
composer/ composer/ src/ Composer/ Package/ BasePackage.php - @inheritDoc
File
-
vendor/
composer/ composer/ src/ Composer/ Package/ PackageInterface.php, line 57
Class
- PackageInterface
- Defines the essential information a package has that is used during solving/installation
Namespace
Composer\PackageCode
public function getNames(bool $provides = true) : array;