OwnContainer::getOwnEntityDescriptorProvider()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 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