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

CredentialContainer   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

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

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 LightSaml\Store\Credential\CredentialStoreInterface;
8
use TYPO3\CMS\Core\SingletonInterface;
9
use TYPO3\CMS\Extbase\Object\Container\Container;
10
11
class CredentialContainer implements CredentialContainerInterface, 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 getCredentialStore()
24
    {
25
        return $this->container->getInstance(CredentialStore::class);
26
    }
27
}
28