ImageColumn   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 0%

Importance

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

2 Methods

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