ServiceInfo::getSpMetaProvider()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace AerialShip\SamlSPBundle\Config;
4
5
class ServiceInfo
6
{
7
8
    /** @var  string */
9
    protected $providerID;
10
11
    /** @var  string */
12
    protected $authenticationService;
13
14
    /** @var  EntityDescriptorProviderInterface */
15
    protected $spProvider;
16
17
    /** @var  EntityDescriptorProviderInterface */
18
    protected $idpProvider;
19
20
    /** @var  SpMetaProviderInterface */
21
    protected $spMetaProvider;
22
23
    /** @var  SPSigningProviderInterface */
24
    protected $spSigningProvider;
25
26
27
    /**
28
     * @param string $providerID
29
     * @param string $name
30
     * @param EntityDescriptorProviderInterface $spProvider
31
     * @param EntityDescriptorProviderInterface $idpProvider
32
     * @param SpMetaProviderInterface $spMetaProvider
33
     * @param SPSigningProviderInterface $spSigningProvider
34
     */
35 7
    function __construct(
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
36
        $providerID,
37
        $name,
38
        EntityDescriptorProviderInterface $spProvider,
39
        EntityDescriptorProviderInterface $idpProvider,
40
        SpMetaProviderInterface $spMetaProvider,
41
        SPSigningProviderInterface $spSigningProvider
42
    ) {
43 7
        $this->providerID = $providerID;
44 7
        $this->authenticationService = $name;
45 7
        $this->spProvider = $spProvider;
46 7
        $this->idpProvider = $idpProvider;
47 7
        $this->spMetaProvider = $spMetaProvider;
48 7
        $this->spSigningProvider = $spSigningProvider;
49 7
    }
50
51
52
    /**
53
     * @return string
54
     */
55 1
    public function getProviderID()
56
    {
57 1
        return $this->providerID;
58
    }
59
60
    /**
61
     * @return string
62
     */
63 1
    public function getAuthenticationService()
64
    {
65 1
        return $this->authenticationService;
66
    }
67
68
    /**
69
     * @return \AerialShip\SamlSPBundle\Config\SpEntityDescriptorBuilder
70
     */
71 1
    public function getSpProvider()
72
    {
73 1
        return $this->spProvider;
74
    }
75
76
    /**
77
     * @return \AerialShip\SamlSPBundle\Config\EntityDescriptorProviderInterface
78
     */
79 1
    public function getIdpProvider()
80
    {
81 1
        return $this->idpProvider;
82
    }
83
84
    /**
85
     * @return \AerialShip\SamlSPBundle\Config\SpMetaProviderInterface
86
     */
87 1
    public function getSpMetaProvider()
88
    {
89 1
        return $this->spMetaProvider;
90
    }
91
92
    /**
93
     * @return \AerialShip\SamlSPBundle\Config\SPSigningProviderInterface
94
     */
95 1
    public function getSpSigningProvider()
96
    {
97 1
        return $this->spSigningProvider;
98
    }
99
}
100