1 | <?php |
||
13 | class WeatherServices implements WeatherServicesInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var \Marek\OpenWeatherMap\API\Weather\Services\WeatherInterface |
||
17 | */ |
||
18 | protected $weatherService; |
||
19 | |||
20 | /** |
||
21 | * @var \Marek\OpenWeatherMap\API\Weather\Services\HourForecastInterface |
||
22 | */ |
||
23 | protected $hourForecastService; |
||
24 | |||
25 | /** |
||
26 | * @var \Marek\OpenWeatherMap\API\Weather\Services\UltravioletIndexInterface |
||
27 | */ |
||
28 | protected $ultravioletIndexService; |
||
29 | |||
30 | /** |
||
31 | * @var \Marek\OpenWeatherMap\API\Weather\Services\AirPollutionInterface |
||
32 | */ |
||
33 | protected $airPollutionService; |
||
34 | |||
35 | /** |
||
36 | * WeatherServices constructor. |
||
37 | * |
||
38 | * @param \Marek\OpenWeatherMap\API\Weather\Services\WeatherInterface $weatherService |
||
39 | * @param \Marek\OpenWeatherMap\API\Weather\Services\HourForecastInterface $hourForecastService |
||
40 | * @param \Marek\OpenWeatherMap\API\Weather\Services\UltravioletIndexInterface $ultravioletIndexService |
||
41 | * @param \Marek\OpenWeatherMap\API\Weather\Services\AirPollutionInterface $airPollutionService |
||
42 | */ |
||
43 | public function __construct( |
||
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | public function getWeatherService(): WeatherInterface |
||
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | public function getAirPollutionService(): AirPollutionInterface |
||
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | */ |
||
74 | public function getUltravioletIndexService(): UltravioletIndexInterface |
||
78 | |||
79 | /** |
||
80 | * {@inheritdoc} |
||
81 | */ |
||
82 | public function getHourForecastService(): HourForecastInterface |
||
86 | } |
||
87 |