Completed
Push — master ( f74ca7...ea85ac )
by Damien
10:39
created

Install   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 4
dl 0
loc 27
c 0
b 0
f 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getModule() 0 4 1
A getProviderTableName() 0 4 1
A getIdentityTableName() 0 4 1
1
<?php
2
3
namespace flipbox\saml\sp\migrations;
4
5
use flipbox\saml\core\migrations\AbstractInstall;
6
use flipbox\saml\sp\records\ProviderIdentityRecord;
7
use flipbox\saml\sp\records\ProviderRecord;
8
use flipbox\saml\sp\Saml;
9
use yii\base\Module;
10
11
/**
12
 * @author Flipbox Factory <[email protected]>
13
 * @since 1.0.0
14
 */
15
class Install extends AbstractInstall
16
{
17
18
    /**
19
     * @inheritdoc
20
     */
21
    protected function getModule(): Module
22
    {
23
        return Saml::getInstance();
24
    }
25
26
    /**
27
     * @inheritdoc
28
     */
29
    protected function getProviderTableName(): string
30
    {
31
        return ProviderRecord::tableName();
32
    }
33
34
    /**
35
     * @inheritdoc
36
     */
37
    protected function getIdentityTableName(): string
38
    {
39
        return ProviderIdentityRecord::tableName();
40
    }
41
}
42