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

Install::getModule()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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