protected function generateRequirePackages(array $packagePairs)
    {
        $requires = [];

        foreach ($packagePairs as $packagePair) {
            $requires[$packagePair->getName()] = $packagePair->getVersion();
        }

        return $requires;
    }
protected function generateRequirePackages(array $packagePairs)
    {
        $requires = [];

        foreach ($packagePairs as $packagePair) {
            $requires[$packagePair->getName()] = $packagePair->getVersion();
        }

        return $requires;
    }
protected function generateRequirePackages ( array $ packagePairs ) { $ requires = [ ] ; foreach ( $ packagePairs as $ packagePair ) { $ requires [ $ packagePair -> getName ( ) ] = $ packagePair -> getVersion ( ) ; } return $ requires ; }
Generates the list of required packages.

@param PackageNameVersion[] $packagePairs

@return array List of packages in which the key is the package's name
and the value is the package's version
Generates the list of required packages .