BaseFormatter   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace Itstructure\GridView\Formatters;
4
5
use Itstructure\GridView\Interfaces\Formattable;
6
use Itstructure\GridView\Traits\{Configurable, Attributable};
7
8
/**
9
 * Class BaseFormatter
10
 * @package Itstructure\GridView\Formatters
11
 */
12
abstract class BaseFormatter implements Formattable
13
{
14
    use Configurable, Attributable;
15
16
    /**
17
     * BaseFormatter constructor.
18
     * @param array $config
19
     */
20
    public function __construct($config = [])
21
    {
22
        $this->loadConfig($config);
23
    }
24
}
25