@@ -54,7 +54,7 @@ |
||
54 | 54 | * |
55 | 55 | * @param bool $toArray |
56 | 56 | * |
57 | - * @return array|Collection|mixed |
|
57 | + * @return Collection |
|
58 | 58 | */ |
59 | 59 | public function applyFilter($toArray = true) |
60 | 60 | { |
@@ -111,6 +111,9 @@ discard block |
||
111 | 111 | ]; |
112 | 112 | } |
113 | 113 | |
114 | + /** |
|
115 | + * @param string $permission |
|
116 | + */ |
|
114 | 117 | private function generateHttpMethod($permission) |
115 | 118 | { |
116 | 119 | switch ($permission) { |
@@ -132,6 +135,9 @@ discard block |
||
132 | 135 | return $http_method; |
133 | 136 | } |
134 | 137 | |
138 | + /** |
|
139 | + * @param string $permission |
|
140 | + */ |
|
135 | 141 | private function generateHttpPath($table, $permission) |
136 | 142 | { |
137 | 143 | $resource = Str::kebab(Str::camel($table)); |
@@ -158,6 +164,9 @@ discard block |
||
158 | 164 | return $http_path; |
159 | 165 | } |
160 | 166 | |
167 | + /** |
|
168 | + * @param string $permission |
|
169 | + */ |
|
161 | 170 | private function generateSlug($table, $permission) |
162 | 171 | { |
163 | 172 | return Str::kebab(Str::camel($table)) . '.' . $permission; |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | /** |
140 | 140 | * Extend column displayer. |
141 | 141 | * |
142 | - * @param $name |
|
142 | + * @param string $name |
|
143 | 143 | * @param $displayer |
144 | 144 | */ |
145 | 145 | public static function extend($name, $displayer) |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | /** |
174 | 174 | * Set model for column. |
175 | 175 | * |
176 | - * @param $model |
|
176 | + * @param Model $model |
|
177 | 177 | */ |
178 | 178 | public function setModel($model) |
179 | 179 | { |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | /** |
258 | 258 | * Get original column value. |
259 | 259 | * |
260 | - * @return mixed |
|
260 | + * @return string |
|
261 | 261 | */ |
262 | 262 | public function getOriginal() |
263 | 263 | { |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | /** |
268 | 268 | * Get name of this column. |
269 | 269 | * |
270 | - * @return mixed |
|
270 | + * @return string |
|
271 | 271 | */ |
272 | 272 | public function getName() |
273 | 273 | { |
@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | /** |
296 | 296 | * Get label of the column. |
297 | 297 | * |
298 | - * @return mixed |
|
298 | + * @return string |
|
299 | 299 | */ |
300 | 300 | public function getLabel() |
301 | 301 | { |
@@ -396,7 +396,7 @@ discard block |
||
396 | 396 | * Display using display abstract. |
397 | 397 | * |
398 | 398 | * @param string $abstract |
399 | - * @param array $arguments |
|
399 | + * @param Closure[] $arguments |
|
400 | 400 | * |
401 | 401 | * @return $this |
402 | 402 | */ |
@@ -43,7 +43,7 @@ |
||
43 | 43 | * |
44 | 44 | * @param string $cast |
45 | 45 | * |
46 | - * @return Column|string |
|
46 | + * @return HasHeader |
|
47 | 47 | */ |
48 | 48 | protected function addSorter($cast = null) |
49 | 49 | { |
@@ -28,7 +28,7 @@ |
||
28 | 28 | * |
29 | 29 | * @param string $value |
30 | 30 | * |
31 | - * @param Model|null $model |
|
31 | + * @param Model $model |
|
32 | 32 | */ |
33 | 33 | public function addBinding($value, Model $model) |
34 | 34 | { |