芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/midiatech/lib/Weather/WeatherProvider.php
. */ namespace Xibo\Weather; use Xibo\Service\LogServiceInterface; interface WeatherProvider { /** * @param \Psr\Log\NullLogger|LogServiceInterface $logger * @return $this */ public function enableLogging($logger); /** * @param \GuzzleHttp\ClientInterface $client * @return $this */ public function setHttpClient($client); /** * @param array $options * @return $this */ public function setOptions(array $options); /** * @param string $key * @return $this */ public function setKey(string $key); /** * @param int $cachePeriod * @return $this */ public function setCachePeriod(int $cachePeriod); /** * @param $lat * @param $long * @return $this */ public function setLocation($lat, $long); /** * @param $lang * @return $this */ public function setLang($lang); /** * @param $units * @return $this */ public function setUnits($units); /** * @return string */ public function getAttribution(); /** * @return \Xibo\Weather\Forecast * @throws \Xibo\Exception\GeneralException */ public function getCurrentDay(); /** * @return \Xibo\Weather\Forecast[] * @throws \Xibo\Exception\GeneralException */ public function getForecast(); /** * Get TimeZone * @return string */ public function getTimezone(); /** * Units supported by Forecast.IO API * @return array The Units Available (temperature, wind speed and visible distance) */ public static function unitsAvailable(); /** * Languages supported by Forecast.IO API * @return array The Supported Language */ public static function supportedLanguages(); }