Completed
Push — master ( c3456a...b4bda7 )
by Damien
04:06 queued 38s
created

SamlPluginEnsured   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getSamlPlugin() 0 4 1
1
<?php
2
3
/**
4
 * @copyright  Copyright (c) Flipbox Digital Limited
5
 */
6
7
namespace flipbox\saml\sp\traits;
8
9
use flipbox\saml\core\SamlPluginInterface;
10
use flipbox\saml\core\traits\EnsureSamlPlugin;
11
use flipbox\saml\sp\records\ProviderIdentityRecord;
12
use flipbox\saml\sp\records\ProviderRecord;
13
use flipbox\saml\sp\Saml;
14
15
trait SamlPluginEnsured
16
{
17
18
    /**
19
     * @see EnsureSamlPlugin
20
     * @return SamlPluginInterface
21
     */
22 9
    protected function getSamlPlugin(): SamlPluginInterface
23
    {
24 9
        return Saml::getInstance();
25
    }
26
}
27