Completed
Push — master ( dbea24...30460b )
by wen
04:20
created

Column   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 14
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A __toString() 0 4 1
1
<?php
2
3
4
namespace Sco\Admin\Column;
5
6
use Sco\Attributes\HasAttributesTrait;
7
8
abstract class Column
9
{
10
    use HasAttributesTrait;
11
12
    public function __construct($option)
13
    {
14
        $this->setAttribute($option);
15
    }
16
17
    function __toString()
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
18
    {
19
        return $this->toJson();
20
    }
21
}
22