DisplayFactory::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 7
ccs 0
cts 7
cp 0
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Sco\Admin\Display;
4
5
use Sco\Admin\Contracts\Display\DisplayFactoryInterface;
6
use Sco\Admin\Traits\AliasBinder;
7
8
/**
9
 * @method static Table table()
10
 * @method static Image image()
11
 */
12
class DisplayFactory implements DisplayFactoryInterface
13
{
14
    use AliasBinder;
15
16
    public function __construct()
17
    {
18
        $this->register([
19
            'table' => Table::class,
20
            'image' => Image::class,
21
        ]);
22
    }
23
}
24