CredentialContainer::__construct()   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 1
crap 2
1
<?php
2
3
namespace DMK\MKSamlAuth\Container;
4
5
use DMK\MKSamlAuth\Store\CredentialStore;
6
use LightSaml\Build\Container\CredentialContainerInterface;
7
use TYPO3\CMS\Core\SingletonInterface;
8
9
class CredentialContainer implements CredentialContainerInterface, SingletonInterface
10
{
11
    /**
12
     * @var SingletonContainer
13
     */
14
    private $container;
15
16
    public function __construct(SingletonContainer $container)
17
    {
18
        $this->container = $container;
19
    }
20
21
    public function getCredentialStore()
22
    {
23
        return $this->container->getInstance(CredentialStore::class);
24
    }
25
}
26