src/Composer/Installer/SuggestedPackagesReporter.php
public function addSuggestionsFromPackage(PackageInterface $package)
    {
        $source = $package->getPrettyName();
        foreach ($package->getSuggests() as $target => $reason) {
            $this->addPackage(
                $source,
                $target,
                $reason
            );
        }

        return $this;
    }
public function addSuggestionsFromPackage(PackageInterface $package)
    {
        $source = $package->getPrettyName();
        foreach ($package->getSuggests() as $target => $reason) {
            $this->addPackage(
                $source,
                $target,
                $reason
            );
        }

        return $this;
    }
public function addSuggestionsFromPackage ( PackageInterface $ package ) { $ source = $ package -> getPrettyName ( ) ; foreach ( $ package -> getSuggests ( ) as $ target => $ reason ) { $ this -> addPackage ( $ source , $ target , $ reason ) ; } return $ this ; }
Add all suggestions from a package.

@param  PackageInterface          $package
@return SuggestedPackagesReporter
Add all suggestions from a package .