ProviderContainer::getNameIdProvider()   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\ProviderContainerInterface;
8
use LightSaml\Provider\Attribute\FixedAttributeValueProvider;
9
use LightSaml\Provider\NameID\FixedNameIdProvider;
10
use LightSaml\Provider\Session\FixedSessionInfoProvider;
11
use TYPO3\CMS\Core\SingletonInterface;
12
13
class ProviderContainer implements ProviderContainerInterface, SingletonInterface
14
{
15
    /**
16
     * @var SingletonContainer
17
     */
18
    private $container;
19
20
    public function __construct(SingletonContainer $container)
21
    {
22
        $this->container = $container;
23
    }
24
25
    public function getAttributeValueProvider()
26
    {
27
        return $this->container->getInstance(FixedAttributeValueProvider::class);
28
    }
29
30
    public function getSessionInfoProvider()
31
    {
32
        return $this->container->getInstance(FixedSessionInfoProvider::class);
33
    }
34
35
    public function getNameIdProvider()
36
    {
37
        return $this->container->getInstance(FixedNameIdProvider::class);
38
    }
39
}
40