@@ -75,7 +75,7 @@ |
||
| 75 | 75 | /** |
| 76 | 76 | * Return the key of the current element |
| 77 | 77 | * @link https://php.net/manual/en/iterator.key.php |
| 78 | - * @return mixed scalar on success, or null on failure. |
|
| 78 | + * @return integer scalar on success, or null on failure. |
|
| 79 | 79 | * @since 5.0.0 |
| 80 | 80 | */ |
| 81 | 81 | public function key() |
@@ -8,16 +8,35 @@ |
||
| 8 | 8 | |
| 9 | 9 | interface ModelRepositoryInterface |
| 10 | 10 | { |
| 11 | + /** |
|
| 12 | + * @return EloquentModelRepository |
|
| 13 | + */ |
|
| 11 | 14 | public function setCrud(CRUD $crud); |
| 12 | 15 | public function get(); |
| 13 | 16 | public function find($id); |
| 14 | 17 | public function delete($id): bool; |
| 15 | 18 | public function store(array $data); |
| 16 | 19 | public function update($id, array $data); |
| 20 | + |
|
| 21 | + /** |
|
| 22 | + * @return void |
|
| 23 | + */ |
|
| 17 | 24 | public function reorder($id, $idPrev, $idNext); |
| 18 | 25 | public function restore($id); |
| 19 | 26 | public function forceDelete($id); |
| 27 | + |
|
| 28 | + /** |
|
| 29 | + * @return void |
|
| 30 | + */ |
|
| 20 | 31 | public function filter(\Closure $callback); |
| 32 | + |
|
| 33 | + /** |
|
| 34 | + * @return void |
|
| 35 | + */ |
|
| 21 | 36 | public function order(string $column, string $direction); |
| 37 | + |
|
| 38 | + /** |
|
| 39 | + * @return integer|null |
|
| 40 | + */ |
|
| 22 | 41 | public function perPage(int $perPage = null); |
| 23 | 42 | } |
@@ -25,6 +25,9 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | public function tooltip(string $tooltip, string $position = ActionInterface::TOOLTIP_POSITION_TOP): ActionInterface; |
| 27 | 27 | |
| 28 | + /** |
|
| 29 | + * @return string |
|
| 30 | + */ |
|
| 28 | 31 | public function getTooltip(); |
| 29 | 32 | |
| 30 | 33 | public function getTooltipPosition(): string; |