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

Cp::createNewMigration()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
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