BuildContainer::getOwnContainer()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 1
c 2
b 0
f 0
dl 0
loc 3
rs 10
ccs 0
cts 3
cp 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace DMK\MKSamlAuth\Container;
6
7
use LightSaml\Build\Container\BuildContainerInterface;
8
use TYPO3\CMS\Core\SingletonInterface;
9
10
class BuildContainer implements BuildContainerInterface, SingletonInterface
11
{
12
    /**
13
     * @var SingletonContainer
14
     */
15
    private $container;
16
17
    public function __construct(SingletonContainer $container)
18
    {
19
        $this->container = $container;
20
    }
21
22
    public function getSystemContainer()
23
    {
24
        return $this->container->getInstance(SystemContainer::class);
25
    }
26
27
    public function getPartyContainer()
28
    {
29
        return $this->container->getInstance(PartyContainer::class);
30
    }
31
32
    public function getStoreContainer()
33
    {
34
        return $this->container->getInstance(StoreContainer::class);
35
    }
36
37
    public function getProviderContainer()
38
    {
39
        return $this->container->getInstance(ProviderContainer::class);
40
    }
41
42
    public function getCredentialContainer()
43
    {
44
        return $this->container->getInstance(CredentialContainer::class);
45
    }
46
47
    public function getServiceContainer()
48
    {
49
        return $this->container->getInstance(ServiceContainer::class);
50
    }
51
52
    public function getOwnContainer()
53
    {
54
        return $this->container->getInstance(OwnContainer::class);
55
    }
56
}
57