SPSigningProviderNull   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 3
c 2
b 0
f 0
lcom 0
cbo 0
dl 0
loc 28
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A isEnabled() 0 4 1
A getCertificate() 0 4 1
A getPrivateKey() 0 4 1
1
<?php
2
3
namespace AerialShip\SamlSPBundle\Config;
4
5
use AerialShip\LightSaml\Security\X509Certificate;
6
7
class SPSigningProviderNull implements SPSigningProviderInterface
8
{
9
    /**
10
     * @return bool
11
     */
12
    public function isEnabled()
13
    {
14
        return false;
15
    }
16
17
    /**
18
     * @throws \RuntimeException
19
     * @return X509Certificate
20
     */
21
    public function getCertificate()
22
    {
23
        throw new \RuntimeException('Signing not enabled');
24
    }
25
26
    /**
27
     * @throws \RuntimeException
28
     * @return \XMLSecurityKey
29
     */
30
    public function getPrivateKey()
31
    {
32
        throw new \RuntimeException('Signing not enabled');
33
    }
34
}
35