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

m180812_200148_add_label_and_mapping   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 0%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A init() 0 4 1
A getSamlPlugin() 0 4 1
A getProviderTableName() 0 4 1
1
<?php
2
3
namespace flipbox\saml\sp\migrations;
4
5
use Craft;
6
use craft\db\Migration;
7
use flipbox\saml\core\SamlPluginInterface;
8
use flipbox\saml\sp\records\ProviderRecord;
9
use flipbox\saml\sp\Saml;
10
11
/**
12
 * m180812_200148_add_provider_label migration.
13
 */
14
class m180812_200148_add_label_and_mapping extends \flipbox\saml\core\migrations\m180812_200148_add_label_and_mapping
15
{
16
    public function init()
17
    {
18
        parent::init();
19
    }
20
21
    /**
22
     * @inheritdoc
23
     */
24
    protected function getSamlPlugin(): SamlPluginInterface
25
    {
26
        return Saml::getInstance();
27
    }
28
29
    /**
30
     * @inheritdoc
31
     */
32
    protected static function getProviderTableName()
33
    {
34
        return ProviderRecord::tableName();
35
    }
36
}
37