@@ -336,7 +336,7 @@ |
||
336 | 336 | /** |
337 | 337 | * Returns the model that is belong to the queue message. |
338 | 338 | * |
339 | - * @return Issue|Issue\Comment|Note |
|
339 | + * @return \Illuminate\Database\Eloquent\Model |
|
340 | 340 | */ |
341 | 341 | protected function getModel() |
342 | 342 | { |
@@ -98,7 +98,7 @@ |
||
98 | 98 | /** |
99 | 99 | * Returns first status tag id. |
100 | 100 | * |
101 | - * @return int |
|
101 | + * @return string |
|
102 | 102 | */ |
103 | 103 | public function getFirstStatusTagId() |
104 | 104 | { |
@@ -111,7 +111,7 @@ |
||
111 | 111 | /** |
112 | 112 | * Return arguments and name from blade expression. |
113 | 113 | * |
114 | - * @param $expression |
|
114 | + * @param string $expression |
|
115 | 115 | * |
116 | 116 | * @return array |
117 | 117 | */ |
@@ -59,7 +59,7 @@ |
||
59 | 59 | * |
60 | 60 | * @param string $body |
61 | 61 | * |
62 | - * @return Project\Note |
|
62 | + * @return boolean |
|
63 | 63 | */ |
64 | 64 | public function updateBody($body) |
65 | 65 | { |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | * |
79 | 79 | * @param string $body |
80 | 80 | * |
81 | - * @return Comment |
|
81 | + * @return boolean |
|
82 | 82 | */ |
83 | 83 | public function updateBody($body) |
84 | 84 | { |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | /** |
103 | 103 | * Delete a comment and its attachments. |
104 | 104 | * |
105 | - * @return Comment |
|
105 | + * @return boolean|null |
|
106 | 106 | * |
107 | 107 | * @throws \Exception |
108 | 108 | */ |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | * Insert add comment to message queue. |
127 | 127 | * |
128 | 128 | * @param Comment $comment |
129 | - * @param int|User $changeBy |
|
129 | + * @param User $changeBy |
|
130 | 130 | * |
131 | 131 | * @return void |
132 | 132 | */ |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | * Insert update comment to message queue. |
145 | 145 | * |
146 | 146 | * @param Comment $comment |
147 | - * @param int|User $changeBy |
|
147 | + * @param User $changeBy |
|
148 | 148 | * |
149 | 149 | * @return void |
150 | 150 | */ |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | * Insert delete comment to message queue. |
163 | 163 | * |
164 | 164 | * @param Comment $comment |
165 | - * @param int|User $changeBy |
|
165 | + * @param User $changeBy |
|
166 | 166 | * |
167 | 167 | * @return void |
168 | 168 | */ |
@@ -63,7 +63,7 @@ |
||
63 | 63 | /** |
64 | 64 | * Returns all users that are not assigned in the current project. |
65 | 65 | * |
66 | - * @return array |
|
66 | + * @return \Illuminate\Support\Collection |
|
67 | 67 | */ |
68 | 68 | public function getNotMembers() |
69 | 69 | { |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | * @param Project $project |
43 | 43 | * @param User $user |
44 | 44 | * |
45 | - * @return Project\Issue\Attachment |
|
45 | + * @return boolean |
|
46 | 46 | */ |
47 | 47 | public function upload(array $input, Project $project, User $user) |
48 | 48 | { |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | * @param id|User $uploadBy |
106 | 106 | * @param int $issueId |
107 | 107 | * |
108 | - * @return Project\Issue\Attachment |
|
108 | + * @return boolean |
|
109 | 109 | */ |
110 | 110 | public function updateIssueToken($token, $uploadBy, $issueId) |
111 | 111 | { |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | * @param int $issueId |
121 | 121 | * @param int $commentId |
122 | 122 | * |
123 | - * @return Project\Issue\Attachment |
|
123 | + * @return boolean|null |
|
124 | 124 | */ |
125 | 125 | public function updateCommentToken($token, $uploadBy, $issueId, $commentId) |
126 | 126 | { |
@@ -11,8 +11,6 @@ |
||
11 | 11 | |
12 | 12 | namespace Tinyissue\Model\Traits\Message\Queue; |
13 | 13 | |
14 | -use Illuminate\Database\Eloquent\Relations; |
|
15 | - |
|
16 | 14 | /** |
17 | 15 | * RelationTrait is trait class containing the relationship methods for the message queue model. |
18 | 16 | * |
@@ -195,7 +195,15 @@ |
||
195 | 195 | ->orderBy('position'); |
196 | 196 | } |
197 | 197 | |
198 | + /** |
|
199 | + * @param string $foreignKey |
|
200 | + */ |
|
198 | 201 | abstract public function hasMany($related, $foreignKey = null, $localKey = null); |
199 | 202 | |
203 | + /** |
|
204 | + * @param string $table |
|
205 | + * @param string $foreignKey |
|
206 | + * @param string $otherKey |
|
207 | + */ |
|
200 | 208 | abstract public function belongsToMany($related, $table = null, $foreignKey = null, $otherKey = null, $relation = null); |
201 | 209 | } |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | * |
64 | 64 | * @param array $data |
65 | 65 | * |
66 | - * @return mixed |
|
66 | + * @return Model |
|
67 | 67 | */ |
68 | 68 | public function create(array $data) |
69 | 69 | { |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | * |
78 | 78 | * @param array $attributes |
79 | 79 | * |
80 | - * @return mixed |
|
80 | + * @return boolean |
|
81 | 81 | */ |
82 | 82 | public function update(array $attributes = []) |
83 | 83 | { |