Passed
Push — master ( d7e8d7...5cd27e )
by
unknown
26:58 queued 24:20
created

Buildable::getConfig()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Da\Mailer\Builder;
4
5
use Da\Mailer\Helper\ConfigReader;
6
use Exception;
7
8
abstract class Buildable
9
{
10
    /**
11
     * @return array
12
     * @throws Exception
13
     */
14
    protected static function getConfig()
15
    {
16
        return ConfigReader::get();
17
    }
18
19
    /**
20
     * @param $config
21
     * @return void
22
     */
23
    abstract public static function make($config = null);
24
}
25