1 | <?php |
||
7 | class Sorter implements Renderable |
||
8 | { |
||
9 | /** |
||
10 | * Sort arguments. |
||
11 | * |
||
12 | * @var array |
||
13 | */ |
||
14 | protected $sort; |
||
15 | |||
16 | /** |
||
17 | * Cast Name. |
||
18 | * |
||
19 | * @var array |
||
20 | */ |
||
21 | protected $cast; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $sortName; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | protected $columnName; |
||
32 | |||
33 | /** |
||
34 | * Sorter constructor. |
||
35 | * |
||
36 | * @param string $sortName |
||
37 | * @param string $columnName |
||
38 | * @param string $cast |
||
39 | */ |
||
40 | public function __construct($sortName, $columnName, $cast) |
||
46 | |||
47 | /** |
||
48 | * Determine if this column is currently sorted. |
||
49 | * |
||
50 | * @return bool |
||
51 | */ |
||
52 | protected function isSorted() |
||
62 | |||
63 | /** |
||
64 | * @return string |
||
65 | */ |
||
66 | public function render() |
||
90 | } |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..