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

Buildable   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 16
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getConfig() 0 3 1
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