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

SettingsController   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getSamlPlugin() 0 4 1
A getUpdateClass() 0 4 1
A getProviderRecord() 0 4 1
1
<?php
2
3
/**
4
 * @copyright  Copyright (c) Flipbox Digital Limited
5
 */
6
7
namespace flipbox\saml\sp\controllers;
8
9
use flipbox\saml\core\controllers\AbstractSettingsController;
10
use flipbox\saml\core\SamlPluginInterface;
11
use flipbox\saml\sp\actions\Update;
12
use flipbox\saml\sp\records\ProviderRecord;
13
use flipbox\saml\sp\Saml;
14
use craft\helpers\ArrayHelper;
15
16
/**
17
 * Class SettingsController
18
 * @package flipbox\saml\sp\controllers\cp\view
19
 */
20
class SettingsController extends AbstractSettingsController
21
{
22
    /**
23
     * @inheritdoc
24
     */
25
    protected function getSamlPlugin(): SamlPluginInterface
26
    {
27
        return Saml::getInstance();
28
    }
29
30
    /**
31
     * @inheritdoc
32
     */
33
    protected function getUpdateClass()
34
    {
35
        return Update::class;
36
    }
37
38
    /**
39
     * @inheritdoc
40
     */
41
    protected function getProviderRecord()
42
    {
43
        return ProviderRecord::class;
44
    }
45
}
46