BuildContainer   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 8
eloc 10
c 2
b 0
f 0
dl 0
loc 45
rs 10
ccs 0
cts 31
cp 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getOwnContainer() 0 3 1
A getStoreContainer() 0 3 1
A getServiceContainer() 0 3 1
A getPartyContainer() 0 3 1
A getProviderContainer() 0 3 1
A getSystemContainer() 0 3 1
A getCredentialContainer() 0 3 1
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