@@ -60,5 +60,9 @@ |
||
60 | 60 | abstract protected function init(); |
61 | 61 | abstract protected function bound(); |
62 | 62 | abstract protected function crud(): CRUD; |
63 | + |
|
64 | + /** |
|
65 | + * @param string $action |
|
66 | + */ |
|
63 | 67 | abstract protected function can($action): bool; |
64 | 68 | } |
@@ -60,5 +60,9 @@ |
||
60 | 60 | abstract protected function init(); |
61 | 61 | abstract protected function bound(); |
62 | 62 | abstract protected function crud(): CRUD; |
63 | + |
|
64 | + /** |
|
65 | + * @param string $action |
|
66 | + */ |
|
63 | 67 | abstract protected function can($action): bool; |
64 | 68 | } |
@@ -60,5 +60,9 @@ |
||
60 | 60 | abstract protected function init(); |
61 | 61 | abstract protected function bound(); |
62 | 62 | abstract protected function crud(): CRUD; |
63 | + |
|
64 | + /** |
|
65 | + * @param string $action |
|
66 | + */ |
|
63 | 67 | abstract protected function can($action): bool; |
64 | 68 | } |
@@ -4,16 +4,39 @@ |
||
4 | 4 | |
5 | 5 | interface FieldPropsInterface |
6 | 6 | { |
7 | + /** |
|
8 | + * @return boolean |
|
9 | + */ |
|
7 | 10 | public function isEncode(); |
11 | + |
|
12 | + /** |
|
13 | + * @return boolean |
|
14 | + */ |
|
8 | 15 | public function isInline(); |
16 | + |
|
17 | + /** |
|
18 | + * @return boolean |
|
19 | + */ |
|
9 | 20 | public function isMarkupRow(); |
10 | 21 | public function isMultiple(); |
11 | 22 | public function isOrderable(); |
23 | + |
|
24 | + /** |
|
25 | + * @return boolean |
|
26 | + */ |
|
12 | 27 | public function isRelationField(); |
13 | 28 | public function isNullable(); |
29 | + |
|
30 | + /** |
|
31 | + * @return boolean |
|
32 | + */ |
|
14 | 33 | public function hasTooltip(); |
15 | 34 | public function hasClipboardButton(); |
16 | 35 | public function isTranslatable(); |
36 | + |
|
37 | + /** |
|
38 | + * @return boolean |
|
39 | + */ |
|
17 | 40 | public function isMaskable(); |
18 | 41 | public function hasMaxlength(): bool; |
19 | 42 | } |
@@ -6,6 +6,9 @@ |
||
6 | 6 | { |
7 | 7 | protected $model = ''; |
8 | 8 | |
9 | + /** |
|
10 | + * @param string $model |
|
11 | + */ |
|
9 | 12 | public function setModel($model) |
10 | 13 | { |
11 | 14 | $this->model = $model; |
@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | private $tableIdentifier; |
8 | 8 | |
9 | 9 | /** |
10 | - * @param null $ident |
|
10 | + * @param integer $ident |
|
11 | 11 | * @return mixed|void |
12 | 12 | */ |
13 | 13 | public function tableIdentifier($ident = null) |
@@ -34,6 +34,9 @@ discard block |
||
34 | 34 | return $this->preferences()->getPerPageParam($this->tableIdentifier()); |
35 | 35 | } |
36 | 36 | |
37 | + /** |
|
38 | + * @param integer $perPage |
|
39 | + */ |
|
37 | 40 | public function setPerPageParam($perPage) |
38 | 41 | { |
39 | 42 | $this->preferences()->setPerPageParam($this->tableIdentifier(), $perPage); |
@@ -8,17 +8,40 @@ |
||
8 | 8 | |
9 | 9 | interface ModelRepositoryInterface |
10 | 10 | { |
11 | + /** |
|
12 | + * @return ModelRepository |
|
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); |
15 | 18 | public function store(Request $request); |
19 | + |
|
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
16 | 23 | public function update($id, Request $request); |
17 | 24 | public function updateField($id, Request $request, AbstractField $field, $value); |
25 | + |
|
26 | + /** |
|
27 | + * @return void |
|
28 | + */ |
|
18 | 29 | public function reorder($id, $idPrev, $idNext); |
19 | 30 | public function restore($id); |
20 | 31 | public function forceDelete($id); |
32 | + |
|
33 | + /** |
|
34 | + * @return void |
|
35 | + */ |
|
21 | 36 | public function filter(\Closure $callback); |
37 | + |
|
38 | + /** |
|
39 | + * @return void |
|
40 | + */ |
|
22 | 41 | public function order(string $column, string $direction); |
42 | + |
|
43 | + /** |
|
44 | + * @return integer|null |
|
45 | + */ |
|
23 | 46 | public function perPage(int $perPage = null); |
24 | 47 | } |
@@ -60,5 +60,9 @@ |
||
60 | 60 | abstract protected function init(); |
61 | 61 | abstract protected function bound(); |
62 | 62 | abstract protected function crud(): CRUD; |
63 | + |
|
64 | + /** |
|
65 | + * @param string $action |
|
66 | + */ |
|
63 | 67 | abstract protected function can($action): bool; |
64 | 68 | } |
@@ -60,5 +60,9 @@ |
||
60 | 60 | abstract protected function init(); |
61 | 61 | abstract protected function bound(); |
62 | 62 | abstract protected function crud(): CRUD; |
63 | + |
|
64 | + /** |
|
65 | + * @param string $action |
|
66 | + */ |
|
63 | 67 | abstract protected function can($action): bool; |
64 | 68 | } |