StoreContainer   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 30
c 0
b 0
f 0
wmc 3
lcom 1
cbo 1
ccs 6
cts 6
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getRequestStateStore() 0 4 1
A getIdStateStore() 0 4 1
A getSsoStateStore() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the LightSAML-Core package.
5
 *
6
 * (c) Milos Tomic <[email protected]>
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace LightSaml\Bridge\Pimple\Container;
13
14
use LightSaml\Build\Container\StoreContainerInterface;
15
use LightSaml\Store\Id\IdStoreInterface;
16
use LightSaml\Store\Request\RequestStateStoreInterface;
17
use LightSaml\Store\Sso\SsoStateStoreInterface;
18
19
class StoreContainer extends AbstractPimpleContainer implements StoreContainerInterface
20
{
21
    const REQUEST_STATE_STORE = 'lightsaml.container.request_state_store';
22
    const ID_STATE_STORE = 'lightsaml.container.id_state_store';
23
    const SSO_STATE_STORE = 'lightsaml.container.sso_state_store';
24
25
    /**
26
     * @return RequestStateStoreInterface
27
     */
28 2
    public function getRequestStateStore()
29
    {
30 2
        return $this->pimple[self::REQUEST_STATE_STORE];
31
    }
32
33
    /**
34
     * @return IdStoreInterface
35
     */
36 1
    public function getIdStateStore()
37
    {
38 1
        return $this->pimple[self::ID_STATE_STORE];
39
    }
40
41
    /**
42
     * @return SsoStateStoreInterface
43
     */
44 1
    public function getSsoStateStore()
45
    {
46 1
        return $this->pimple[self::SSO_STATE_STORE];
47
    }
48
}
49