Passed
Push — master ( eda472...81f3e1 )
by Tomáš
11:58
created

DefaultServiceContainer::getBranchService()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Inspirum\Balikobot\Service\Registry;
6
7
use Inspirum\Balikobot\Service\BranchService;
8
use Inspirum\Balikobot\Service\InfoService;
9
use Inspirum\Balikobot\Service\PackageService;
10
use Inspirum\Balikobot\Service\SettingService;
11
use Inspirum\Balikobot\Service\TrackService;
12
13
final class DefaultServiceContainer implements ServiceContainer
14
{
15 1
    public function __construct(
16
        private readonly BranchService $branchService,
17
        private readonly InfoService $infoService,
18
        private readonly PackageService $packageService,
19
        private readonly SettingService $settingService,
20
        private readonly TrackService $trackService,
21
    ) {
22 1
    }
23
24 1
    public function getBranchService(): BranchService
25
    {
26 1
        return $this->branchService;
27
    }
28
29 1
    public function getInfoService(): InfoService
30
    {
31 1
        return $this->infoService;
32
    }
33
34 1
    public function getPackageService(): PackageService
35
    {
36 1
        return $this->packageService;
37
    }
38
39 1
    public function getSettingService(): SettingService
40
    {
41 1
        return $this->settingService;
42
    }
43
44 1
    public function getTrackService(): TrackService
45
    {
46 1
        return $this->trackService;
47
    }
48
}
49