Completed
Push — 16146-settings-to-admin ( e90069 )
by Shawn
05:56
created

Mail   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 20
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A setup() 0 10 2
1
<?php
2
3
namespace SET\Handlers\DBConfigs;
4
5
class Mail extends ConfigAbstract
6
{
7
    public $allowable = [
8
        'mail.host',
9
        'mail.port',
10
        'mail.encryption',
11
        'mail.password',
12
    ];
13
14
    public function setup()
15
    {
16
        $this->setConfigValues('mail.driver');
17
        $this->setConfigValues('mail.from.address');
18
        $this->setConfigValues('mail.from.name');
19
20
        if (config('mail.driver') == 'smtp') {
21
            $this->implementAllowable();
22
        }
23
    }
24
}
25