Completed
Push — 8.7 ( b6d8c1...3ac046 )
by Markus
06:49
created

BuildContainer   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 8
eloc 10
c 1
b 0
f 0
dl 0
loc 45
rs 10

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
use TYPO3\CMS\Extbase\Object\Container\Container;
10
11
class BuildContainer implements BuildContainerInterface, SingletonInterface
12
{
13
    /**
14
     * @var SingletonContainer
15
     */
16
    private $container;
17
18
    public function __construct(SingletonContainer $container)
19
    {
20
        $this->container = $container;
21
    }
22
23
    public function getSystemContainer()
24
    {
25
        return $this->container->getInstance(SystemContainer::class);
26
    }
27
28
    public function getPartyContainer()
29
    {
30
        return $this->container->getInstance(PartyContainer::class);
31
    }
32
33
    public function getStoreContainer()
34
    {
35
        return $this->container->getInstance(StoreContainer::class);
36
    }
37
38
    public function getProviderContainer()
39
    {
40
        return $this->container->getInstance(ProviderContainer::class);
41
    }
42
43
    public function getCredentialContainer()
44
    {
45
        return $this->container->getInstance(CredentialContainer::class);
46
    }
47
48
    public function getServiceContainer()
49
    {
50
        return $this->container->getInstance(ServiceContainer::class);
51
    }
52
53
    public function getOwnContainer()
54
    {
55
        return $this->container->getInstance(OwnContainer::class);
56
    }
57
}
58