diff options
Diffstat (limited to 'lib/Explore/RecommendedSites.php')
-rw-r--r-- | lib/Explore/RecommendedSites.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/Explore/RecommendedSites.php b/lib/Explore/RecommendedSites.php index 504d63497..38fa510da 100644 --- a/lib/Explore/RecommendedSites.php +++ b/lib/Explore/RecommendedSites.php @@ -22,13 +22,20 @@ class RecommendedSites * @param string $exploreDir the absolute path to where the recommendation * config files lie without a trailing slash */ - public function __construct($exploreDir) + public function __construct(string $exploreDir) { $this->directory = $exploreDir; } - public function forLanguage($languageCode) + /** + * @param string $languageCode + * + * @return array + * + * @throws RecommendedSiteNotFoundException + */ + public function forLanguage(string $languageCode) { $file = $this->directory . '/feeds.' . $languageCode . '.json'; |