private function getDownloader(): InstallerInterface
    {
        /**
         * Reverse the order of the downloaders so that the ones added last are checked first.
         *
         * @var InstallerInterface[]
         */
        $installers = \array_reverse($this->installers);
        foreach ($installers as $installer) {
            /** @var InstallerInterface $installer */
            if ($installer->isEligible()) {
                return $installer;
            }
        }

        throw new NoDownloaderFoundException('No eligible downloader found for Mock Server binaries.');
    }
private function getDownloader(): InstallerInterface
    {
        /**
         * Reverse the order of the downloaders so that the ones added last are checked first.
         *
         * @var InstallerInterface[]
         */
        $installers = \array_reverse($this->installers);
        foreach ($installers as $installer) {
            /** @var InstallerInterface $installer */
            if ($installer->isEligible()) {
                return $installer;
            }
        }

        throw new NoDownloaderFoundException('No eligible downloader found for Mock Server binaries.');
    }
private function getDownloader ( ) : InstallerInterface { /**
         * Reverse the order of the downloaders so that the ones added last are checked first.
         *
         * @var InstallerInterface[]
         */ $ installers = \ array_reverse ( $ this -> installers ) ; foreach ( $ installers as $ installer ) { /** @var InstallerInterface $installer */ if ( $ installer -> isEligible ( ) ) { return $ installer ; } } throw new NoDownloaderFoundException ( 'No eligible downloader found for Mock Server binaries.' ) ; }
Get the first downloader that meets the systems eligibility.

@throws NoDownloaderFoundException

@return InstallerInterface
Get the first downloader that meets the systems eligibility .