Completed
Push — master ( 76469b...99b48b )
by Jan Philip
12:47
created

FMeatClient::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace JPBernius\FMeat;
4
5
use JPBernius\FMeat\Configurations\Locations;
6
use JPBernius\FMeat\Entities\Week;
7
use JPBernius\FMeat\Services\NetworkService;
8
use DI\ContainerBuilder;
9
10
class FMeatClient
11
{
12
    /** @var NetworkService */
13
    private $networkService;
14
15
	public function __construct()
16
    {
17
        $container = ContainerBuilder::buildDevContainer();
18
19
        $this->networkService = $container->get(NetworkService::class);
20
    }
21
22
    public function getCurrentWeekForLocation(string $location = Locations::FMI_BISTRO): Week
23
    {
24
        return $this->networkService->getCurrentWeekWithLocation($location);
25
    }
26
}