CredentialContainer   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
eloc 4
c 2
b 0
f 0
dl 0
loc 15
rs 10
ccs 0
cts 7
cp 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getCredentialStore() 0 3 1
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