@@ -407,7 +407,7 @@ discard block |
||
407 | 407 | /** |
408 | 408 | * Get or set rules. |
409 | 409 | * |
410 | - * @param null $rules |
|
410 | + * @param string $rules |
|
411 | 411 | * @param array $messages |
412 | 412 | * |
413 | 413 | * @return $this |
@@ -650,7 +650,7 @@ discard block |
||
650 | 650 | * Add html attributes to elements. |
651 | 651 | * |
652 | 652 | * @param array|string $attribute |
653 | - * @param mixed $value |
|
653 | + * @param boolean|string $value |
|
654 | 654 | * |
655 | 655 | * @return $this |
656 | 656 | */ |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | * Get or set option for grid. |
230 | 230 | * |
231 | 231 | * @param string $key |
232 | - * @param mixed $value |
|
232 | + * @param boolean $value |
|
233 | 233 | * |
234 | 234 | * @return $this|mixed |
235 | 235 | */ |
@@ -286,6 +286,9 @@ discard block |
||
286 | 286 | return $column; |
287 | 287 | } |
288 | 288 | |
289 | + /** |
|
290 | + * @return string |
|
291 | + */ |
|
289 | 292 | public function setLabel($label , $relationColumn) |
290 | 293 | { |
291 | 294 | $trans_key = 'validation.attributes.' . $relationColumn; |
@@ -374,7 +377,7 @@ discard block |
||
374 | 377 | /** |
375 | 378 | * Get the grid paginator. |
376 | 379 | * |
377 | - * @return mixed |
|
380 | + * @return Tools\Paginator |
|
378 | 381 | */ |
379 | 382 | public function paginator() |
380 | 383 | { |
@@ -750,7 +753,7 @@ discard block |
||
750 | 753 | * |
751 | 754 | * @param Closure|null $closure |
752 | 755 | * |
753 | - * @return $this|Tools\Footer |
|
756 | + * @return callable |
|
754 | 757 | */ |
755 | 758 | public function footer(Closure $closure = null) |
756 | 759 | { |
@@ -106,6 +106,10 @@ discard block |
||
106 | 106 | { |
107 | 107 | $this->setPresenter(new Text($this->label)); |
108 | 108 | } |
109 | + |
|
110 | + /** |
|
111 | + * @param string $label |
|
112 | + */ |
|
109 | 113 | public function setLabel($label) |
110 | 114 | { |
111 | 115 | $trans_key = 'validation.attributes.' . $label; |
@@ -350,7 +354,7 @@ discard block |
||
350 | 354 | * |
351 | 355 | * @param Presenter $presenter |
352 | 356 | * |
353 | - * @return mixed |
|
357 | + * @return Presenter |
|
354 | 358 | */ |
355 | 359 | protected function setPresenter(Presenter $presenter) |
356 | 360 | { |
@@ -26,6 +26,9 @@ discard block |
||
26 | 26 | return $this; |
27 | 27 | } |
28 | 28 | |
29 | + /** |
|
30 | + * @param string $string |
|
31 | + */ |
|
29 | 32 | public function prepend($string) |
30 | 33 | { |
31 | 34 | if (is_null($this->prepend)) { |
@@ -35,6 +38,9 @@ discard block |
||
35 | 38 | return $this; |
36 | 39 | } |
37 | 40 | |
41 | + /** |
|
42 | + * @param string $string |
|
43 | + */ |
|
38 | 44 | public function append($string) |
39 | 45 | { |
40 | 46 | if (is_null($this->append)) { |
@@ -51,6 +57,9 @@ discard block |
||
51 | 57 | } |
52 | 58 | } |
53 | 59 | |
60 | + /** |
|
61 | + * @param string $attribute |
|
62 | + */ |
|
54 | 63 | protected function defaultAttribute($attribute, $value) |
55 | 64 | { |
56 | 65 | if (!array_key_exists($attribute, $this->attributes)) { |