ServiceInfo   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 95
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 7
c 2
b 0
f 0
lcom 0
cbo 0
dl 0
loc 95
ccs 20
cts 20
cp 1
rs 10

7 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 15 1
A getProviderID() 0 4 1
A getAuthenticationService() 0 4 1
A getSpProvider() 0 4 1
A getIdpProvider() 0 4 1
A getSpMetaProvider() 0 4 1
A getSpSigningProvider() 0 4 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