Monorepo\Composer\MonorepoInstalledRepository::findPackage PHP Метод

findPackage() публичный Метод

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
Результат Composer\Package\PackageInterface | null
    public function findPackage($name, $version)
    {
        if (isset($this->packages[$name])) {
            return $this->packages[$name];
        }
        return null;
    }