@@ -30,6 +30,9 @@ discard block |
||
30 | 30 | return $this->appendExact($fields, 'appendCountQuery'); |
31 | 31 | } |
32 | 32 | |
33 | + /** |
|
34 | + * @param string $method |
|
35 | + */ |
|
33 | 36 | private function appendExact($fields, $method) |
34 | 37 | { |
35 | 38 | if (is_string($fields)) { |
@@ -61,6 +64,9 @@ discard block |
||
61 | 64 | return $this->appendAlias($fields, $value, 'appendCountQuery'); |
62 | 65 | } |
63 | 66 | |
67 | + /** |
|
68 | + * @param string $method |
|
69 | + */ |
|
64 | 70 | private function appendAlias($fields, $value, $method): self |
65 | 71 | { |
66 | 72 | if (is_array($fields) && is_null($value)) { |
@@ -93,6 +99,9 @@ discard block |
||
93 | 99 | ); |
94 | 100 | } |
95 | 101 | |
102 | + /** |
|
103 | + * @param \Closure $value |
|
104 | + */ |
|
96 | 105 | private function appendQuery($name, $value) |
97 | 106 | { |
98 | 107 | if (is_callable($value)) { |
@@ -58,6 +58,9 @@ |
||
58 | 58 | return $this->response($this->manager->createData($resource)->toArray(), $status); |
59 | 59 | } |
60 | 60 | |
61 | + /** |
|
62 | + * @param integer $status |
|
63 | + */ |
|
61 | 64 | private function response($data, $status) |
62 | 65 | { |
63 | 66 | return response()->json($data, $status); |