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

StoreContainer::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 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