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

StoreContainer   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
eloc 6
c 1
b 0
f 0
dl 0
loc 25
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getIdStateStore() 0 3 1
A __construct() 0 3 1
A getSsoStateStore() 0 3 1
A getRequestStateStore() 0 3 1
1
<?php
2
3
namespace DMK\MKSamlAuth\Container;
4
5
use DMK\MKSamlAuth\Store\IdStore;
6
use DMK\MKSamlAuth\Store\RequestStateStore;
7
use DMK\MKSamlAuth\Store\SessionSsoStateStore;
8
use LightSaml\Build\Container\StoreContainerInterface;
9
use TYPO3\CMS\Core\SingletonInterface;
10
11
class StoreContainer implements StoreContainerInterface, 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 getRequestStateStore()
24
    {
25
        return $this->container->getInstance(RequestStateStore::class);
26
    }
27
28
    public function getIdStateStore()
29
    {
30
        return $this->container->getInstance(IdStore::class);
31
    }
32
33
    public function getSsoStateStore()
34
    {
35
        return $this->container->getInstance(SessionSsoStateStore::class);
36
    }
37
}
38