ViewColumn::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 2
1
<?php
2
3
namespace Webfactor\Laravel\Backpack\FluentSyntax\Columns;
4
5
use Webfactor\Laravel\Backpack\FluentSyntax\Contracts\CrudColumnAbstract;
6
use Webfactor\Laravel\Backpack\FluentSyntax\Traits\Prefixable;
7
use Webfactor\Laravel\Backpack\FluentSyntax\Traits\Relationable;
8
9
class ViewColumn extends CrudColumnAbstract
10
{
11
    protected $type = 'view';
12
13
    public function __construct(string $name, string $view)
14
    {
15
        parent::__construct($name);
16
17
        $this->options['view'] = $view;
18
    }
19
}
20