1 | <?php |
||
11 | abstract class Column implements ColumnInterface, Arrayable, Jsonable, JsonSerializable |
||
12 | { |
||
13 | protected $name; |
||
14 | |||
15 | protected $label; |
||
16 | |||
17 | protected $width = 0; |
||
18 | |||
19 | protected $minWidth = 80; |
||
20 | |||
21 | protected $sortable = false; |
||
22 | |||
23 | protected $fixed = false; |
||
24 | |||
25 | public function __construct($name, $label) |
||
30 | |||
31 | public function getName() |
||
35 | |||
36 | public function setWidth($width) |
||
40 | |||
41 | public function setMinWidth($width) |
||
45 | |||
46 | public function isSortable() |
||
50 | |||
51 | public function isCustomSortable() |
||
58 | |||
59 | public function isFixed() |
||
63 | |||
64 | public function toArray() |
||
75 | |||
76 | public function jsonSerialize() |
||
80 | |||
81 | public function toJson($options = 0) |
||
85 | |||
86 | public function __toString() |
||
90 | } |
||
91 |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.