request = $request; $this->downloader = $downloader; $this->url = $url; } /** * @return Readme * * @throws Download_Exception */ public function get() { if ( $this->request->is_plugins_page() || $this->request->is_plugin_search_page() ) { return $this->readme ? $this->readme : $this->readme = $this->downloader->download( $this->url ); } return new Readme( array() ); } }