Monorepo\Composer\MonorepoInstalledRepository::findPackage PHP Méthode

findPackage() public méthode

Searches for the first match of a package by name and version.
public findPackage ( string $name, string $version ) : Composer\Package\PackageInterface | null
$name string package name
$version string package version
Résultat Composer\Package\PackageInterface | null
    public function findPackage($name, $version)
    {
        if (isset($this->packages[$name])) {
            return $this->packages[$name];
        }
        return null;
    }