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

SamlPluginEnsured::getSamlPlugin()   A

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
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 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