Completed
Push — AddActivityLog ( afa80e...195157 )
by D.
45:05 queued 35:04
created

Mail::setup()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 10
rs 9.4285
cc 2
eloc 6
nc 2
nop 0
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.username',
12
        'mail.password',
13
    ];
14
15
    public function setup()
16
    {
17
        $this->setConfigValues('mail.driver');
18
        $this->setConfigValues('mail.from.address');
19
        $this->setConfigValues('mail.from.name');
20
21
        if (config('mail.driver') == 'smtp') {
22
            $this->implementAllowable();
23
        }
24
    }
25
}
26