1 | <?php |
||
8 | abstract class Column |
||
9 | { |
||
10 | use HasOriginalAndAttributesTrait; |
||
11 | |||
12 | protected $defaultsOptions = [ |
||
13 | 'key' => '', |
||
14 | 'title' => '', |
||
15 | 'sortable' => true, |
||
16 | 'width' => 0, |
||
17 | ]; |
||
18 | |||
19 | protected $defaults = []; |
||
20 | |||
21 | public function __construct($options) |
||
25 | |||
26 | protected function getDefaults() |
||
30 | |||
31 | function __toString() |
||
35 | } |
||
36 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.