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

RadioColumn::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
c 0
b 0
f 0
ccs 0
cts 5
cp 0
rs 9.4285
cc 1
eloc 3
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
8
class RadioColumn extends CrudColumnAbstract
9
{
10
    protected $type = 'radio';
11
12
    public function __construct(string $name, array $options)
13
    {
14
        parent::__construct($name);
15
16
        $this->options['options'] = $options;
17
    }
18
}
19