Completed
Push — master ( 1223fc...6af157 )
by Damien
05:06
created

Cp   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSamlPlugin() 0 4 1
A createNewMigration() 0 4 1
1
<?php
2
3
/**
4
 * @copyright  Copyright (c) Flipbox Digital Limited
5
 */
6
7
namespace flipbox\saml\sp\services;
8
9
use flipbox\saml\core\migrations\AbstractAlterEnvironments;
10
use flipbox\saml\core\SamlPluginInterface;
11
use flipbox\saml\core\services\AbstractCp;
12
use flipbox\saml\sp\migrations\AlterEnvironments;
13
use flipbox\saml\sp\Saml;
14
15
/**
16
 * Class Cp
17
 * @package flipbox\saml\sp\services
18
 */
19
class Cp extends AbstractCp
20
{
21
    /**
22
     * @inheritdoc
23
     */
24
    protected function getSamlPlugin(): SamlPluginInterface
25
    {
26
        return Saml::getInstance();
27
    }
28
29
    /**
30
     * @inheritdoc
31
     */
32
    protected function createNewMigration(): AbstractAlterEnvironments
33
    {
34
        return new AlterEnvironments();
35
    }
36
}
37