OwnContainer   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 21
c 0
b 0
f 0
wmc 2
lcom 1
cbo 1
ccs 4
cts 4
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getOwnEntityDescriptorProvider() 0 4 1
A getOwnCredentials() 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\OwnContainerInterface;
15
use LightSaml\Provider\EntityDescriptor\EntityDescriptorProviderInterface;
16
use LightSaml\Credential\CredentialInterface;
17
18
class OwnContainer extends AbstractPimpleContainer implements OwnContainerInterface
19
{
20
    const OWN_ENTITY_DESCRIPTOR_PROVIDER = 'lightsaml.container.own_entity_descriptor_provider';
21
    const OWN_CREDENTIALS = 'lightsaml.container.own_credentials';
22
23
    /**
24
     * @return EntityDescriptorProviderInterface
25
     */
26 3
    public function getOwnEntityDescriptorProvider()
27
    {
28 3
        return $this->pimple[self::OWN_ENTITY_DESCRIPTOR_PROVIDER];
29
    }
30
31
    /**
32
     * @return CredentialInterface[]
33
     */
34 8
    public function getOwnCredentials()
35
    {
36 8
        return $this->pimple[self::OWN_CREDENTIALS];
37
    }
38
}
39