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

ImageColumn::width()   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 1
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 ImageColumn extends CrudColumnAbstract
9
{
10
    use Prefixable;
11
12
    protected $type = 'image';
13
14
    public function width(string $width)
15
    {
16
        $this->options['width'] = $width;
17
18
        return $this;
19
    }
20
21
    public function height(string $height)
22
    {
23
        $this->options['height'] = $height;
24
25
        return $this;
26
    }
27
}
28