protected function download($version, $slug)
    {
        $archive = $this->directory.'chromedriver.zip';

        $url = sprintf(static::$downloadUrl, $version, $slug);

        file_put_contents($archive, fopen($url, 'r'));

        return $archive;
    }
protected function download($version, $slug)
    {
        $archive = $this->directory.'chromedriver.zip';

        $url = sprintf(static::$downloadUrl, $version, $slug);

        file_put_contents($archive, fopen($url, 'r'));

        return $archive;
    }
protected function download ( $ version , $ slug ) { $ archive = $ this -> directory . 'chromedriver.zip' ; $ url = sprintf ( static :: $ downloadUrl , $ version , $ slug ) ; file_put_contents ( $ archive , fopen ( $ url , 'r' ) ) ; return $ archive ; }
Download the ChromeDriver archive.

@param string $version
@param string $slug
@return string
Download the ChromeDriver archive .