@@ -49,8 +49,7 @@ |
||
| 49 | 49 | /** |
| 50 | 50 | * Fetch a page from remote repository |
| 51 | 51 | * |
| 52 | - * @param string $page |
|
| 53 | - * @return string |
|
| 52 | + * @return TldrPage |
|
| 54 | 53 | * @throws PageNotFoundException |
| 55 | 54 | */ |
| 56 | 55 | public function fetchPage(String $pageName): TldrPage |
@@ -2,11 +2,11 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace GarethEllis\Tldr\Fetcher; |
| 4 | 4 | |
| 5 | +use GarethEllis\Tldr\Cache\CacheWriterInterface; |
|
| 5 | 6 | use GarethEllis\Tldr\Fetcher\Exception\PageNotFoundException; |
| 7 | +use GarethEllis\Tldr\Fetcher\Exception\RemoteFetcherException; |
|
| 6 | 8 | use GarethEllis\Tldr\Page\TldrPage; |
| 7 | 9 | use GuzzleHttp\Client; |
| 8 | -use GarethEllis\Tldr\Cache\CacheWriterInterface; |
|
| 9 | -use GarethEllis\Tldr\Fetcher\Exception\RemoteFetcherException; |
|
| 10 | 10 | |
| 11 | 11 | /** |
| 12 | 12 | * Class RemoteFetcher |