1 | <?php |
||
26 | class WeatherFactory |
||
27 | { |
||
28 | /** |
||
29 | * @var \Marek\OpenWeatherMap\API\Value\Configuration\APIConfiguration |
||
30 | */ |
||
31 | protected $configuration; |
||
32 | |||
33 | /** |
||
34 | * @var \Marek\OpenWeatherMap\Http\Client\HttpClientInterface |
||
35 | */ |
||
36 | protected $httpClient; |
||
37 | |||
38 | /** |
||
39 | * @var \Marek\OpenWeatherMap\API\Cache\HandlerInterface |
||
40 | */ |
||
41 | protected $cache; |
||
42 | |||
43 | /** |
||
44 | * @var \Marek\OpenWeatherMap\Factory\UrlFactory |
||
45 | */ |
||
46 | protected $factory; |
||
47 | |||
48 | /** |
||
49 | * @var \Marek\OpenWeatherMap\Factory\SerializerFactory |
||
50 | */ |
||
51 | protected $serializerFactory; |
||
52 | |||
53 | /** |
||
54 | * WeatherFactory constructor. |
||
55 | * |
||
56 | * @param \Marek\OpenWeatherMap\API\Value\Configuration\APIConfiguration $configuration |
||
57 | * @param \Marek\OpenWeatherMap\API\Cache\HandlerInterface $cache |
||
58 | */ |
||
59 | public function __construct(APIConfiguration $configuration, HandlerInterface $cache) |
||
67 | |||
68 | /** |
||
69 | * @return \Marek\OpenWeatherMap\API\Weather\WeatherServicesInterface |
||
70 | */ |
||
71 | public function createWeatherServices(): WeatherServicesInterface |
||
80 | |||
81 | /** |
||
82 | * @return \Marek\OpenWeatherMap\API\Weather\Services\WeatherInterface |
||
83 | */ |
||
84 | public function createWeatherService(): WeatherInterface |
||
93 | |||
94 | /** |
||
95 | * @return \Marek\OpenWeatherMap\API\Weather\Services\AirPollutionInterface |
||
96 | */ |
||
97 | public function createAirPollutionService(): AirPollutionInterface |
||
106 | |||
107 | /** |
||
108 | * @return \Marek\OpenWeatherMap\API\Weather\Services\UltravioletIndexInterface |
||
109 | */ |
||
110 | public function createUltravioletIndexService(): UltravioletIndexInterface |
||
119 | |||
120 | /** |
||
121 | * @return \Marek\OpenWeatherMap\API\Weather\Services\HourForecastInterface |
||
122 | */ |
||
123 | public function createHourForecastService(): HourForecastInterface |
||
132 | } |
||
133 |