@@ -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 | */ |
@@ -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 | { |
@@ -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 | { |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | * @param int $userId |
| 48 | 48 | * @param int $roleId |
| 49 | 49 | * |
| 50 | - * @return Project\User |
|
| 50 | + * @return boolean |
|
| 51 | 51 | */ |
| 52 | 52 | public function assignUser($userId, $roleId = 0) |
| 53 | 53 | { |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | * |
| 81 | 81 | * @param array $input |
| 82 | 82 | * |
| 83 | - * @return $this |
|
| 83 | + * @return Project |
|
| 84 | 84 | */ |
| 85 | 85 | public function create(array $input = []) |
| 86 | 86 | { |
@@ -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 | { |
@@ -102,10 +102,10 @@ discard block |
||
| 102 | 102 | * Update upload token for issue attachment. |
| 103 | 103 | * |
| 104 | 104 | * @param string $token |
| 105 | - * @param id|User $uploadBy |
|
| 105 | + * @param integer $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 | { |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | * |
| 84 | 84 | * @param string $body |
| 85 | 85 | * |
| 86 | - * @return Comment |
|
| 86 | + * @return boolean |
|
| 87 | 87 | */ |
| 88 | 88 | public function updateBody($body) |
| 89 | 89 | { |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | /** |
| 108 | 108 | * Delete a comment and its attachments. |
| 109 | 109 | * |
| 110 | - * @return Comment |
|
| 110 | + * @return boolean|null |
|
| 111 | 111 | * |
| 112 | 112 | * @throws \Exception |
| 113 | 113 | */ |
@@ -131,9 +131,9 @@ discard block |
||
| 131 | 131 | * Insert add comment to message queue. |
| 132 | 132 | * |
| 133 | 133 | * @param Comment $comment |
| 134 | - * @param int|User $changeBy |
|
| 134 | + * @param User $changeBy |
|
| 135 | 135 | * |
| 136 | - * @return void |
|
| 136 | + * @return null|boolean |
|
| 137 | 137 | */ |
| 138 | 138 | public function queueAdd(Comment $comment, $changeBy) |
| 139 | 139 | { |
@@ -149,9 +149,9 @@ discard block |
||
| 149 | 149 | * Insert update comment to message queue. |
| 150 | 150 | * |
| 151 | 151 | * @param Comment $comment |
| 152 | - * @param int|User $changeBy |
|
| 152 | + * @param User $changeBy |
|
| 153 | 153 | * |
| 154 | - * @return void |
|
| 154 | + * @return null|boolean |
|
| 155 | 155 | */ |
| 156 | 156 | public function queueUpdate(Comment $comment, $changeBy) |
| 157 | 157 | { |
@@ -167,9 +167,9 @@ discard block |
||
| 167 | 167 | * Insert delete comment to message queue. |
| 168 | 168 | * |
| 169 | 169 | * @param Comment $comment |
| 170 | - * @param int|User $changeBy |
|
| 170 | + * @param User $changeBy |
|
| 171 | 171 | * |
| 172 | - * @return void |
|
| 172 | + * @return null|boolean |
|
| 173 | 173 | */ |
| 174 | 174 | public function queueDelete(Comment $comment, $changeBy) |
| 175 | 175 | { |