1 | <?php |
||
11 | class Columns extends Extension implements Initializable, Renderable |
||
12 | { |
||
13 | use \SleepingOwl\Admin\Traits\Renderable; |
||
14 | |||
15 | /** |
||
16 | * @var ColumnInterface[]|Collection |
||
17 | */ |
||
18 | protected $columns; |
||
19 | |||
20 | /** |
||
21 | * @var bool |
||
22 | */ |
||
23 | protected $controlActive = true; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $view = 'display.extensions.columns'; |
||
29 | |||
30 | /** |
||
31 | * @var bool |
||
32 | */ |
||
33 | protected $initialize = false; |
||
34 | |||
35 | /** |
||
36 | * @var Control |
||
37 | */ |
||
38 | protected $controlColumn; |
||
39 | |||
40 | public function __construct() |
||
46 | |||
47 | /** |
||
48 | * @param ColumnInterface $controlColumn |
||
49 | * |
||
50 | * @return $this |
||
51 | */ |
||
52 | public function setControlColumn(ColumnInterface $controlColumn) |
||
58 | |||
59 | /** |
||
60 | * @return Control |
||
61 | */ |
||
62 | public function getControlColumn() |
||
66 | |||
67 | /** |
||
68 | * @return bool |
||
69 | */ |
||
70 | public function isControlActive() |
||
74 | |||
75 | /** |
||
76 | * @return $this |
||
77 | */ |
||
78 | public function enableControls() |
||
84 | |||
85 | /** |
||
86 | * @return $this |
||
87 | */ |
||
88 | public function disableControls() |
||
102 | |||
103 | /** |
||
104 | * @return Collection|\SleepingOwl\Admin\Contracts\ColumnInterface[] |
||
105 | */ |
||
106 | public function all() |
||
110 | |||
111 | /** |
||
112 | * @param $columns |
||
113 | * |
||
114 | * @return \SleepingOwl\Admin\Contracts\DisplayInterface |
||
115 | */ |
||
116 | public function set($columns) |
||
128 | |||
129 | /** |
||
130 | * @param ColumnInterface $column |
||
131 | * |
||
132 | * @return $this |
||
133 | */ |
||
134 | public function push(ColumnInterface $column) |
||
140 | |||
141 | /** |
||
142 | * @return bool |
||
143 | */ |
||
144 | public function isInitialize() |
||
148 | |||
149 | /** |
||
150 | * Get the instance as an array. |
||
151 | * |
||
152 | * @return array |
||
153 | */ |
||
154 | public function toArray() |
||
161 | |||
162 | public function initialize() |
||
174 | |||
175 | /** |
||
176 | * Get the evaluated contents of the object. |
||
177 | * |
||
178 | * @return string |
||
179 | */ |
||
180 | public function render() |
||
196 | } |
||
197 |
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.