Passed
Push — master ( 919d61...4a3edd )
by Thomas
03:54 queued 02:09
created

ViewColumn   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 11
c 0
b 0
f 0
ccs 0
cts 5
cp 0
rs 10

1 Method

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