1 | <?php |
||
16 | class FMeatClient |
||
17 | { |
||
18 | /** @var NetworkService */ |
||
19 | private $networkService; |
||
20 | |||
21 | /** @var YearWeekUtil */ |
||
22 | private $yearWeekUtil; |
||
23 | |||
24 | /** |
||
25 | * FMeatClient constructor. |
||
26 | * @param bool $useCaching |
||
27 | * @throws \DI\DependencyException |
||
28 | * @throws \DI\NotFoundException |
||
29 | */ |
||
30 | public function __construct(bool $useCaching = false) |
||
41 | |||
42 | /** |
||
43 | * @param string $location |
||
44 | * @return Week |
||
45 | * @throws Exeptions\NetworkingException |
||
46 | */ |
||
47 | public function getCurrentWeekForLocation(string $location = Locations::FMI_BISTRO): Week |
||
52 | |||
53 | /** |
||
54 | * @param string $location |
||
55 | * @return Week |
||
56 | * @throws Exeptions\NetworkingException |
||
57 | */ |
||
58 | public function getNextWeekForLocation(string $location = Locations::FMI_BISTRO): Week |
||
63 | } |