@@ -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 | */ |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | use Illuminate\Support\Collection; |
| 15 | 15 | use Tinyissue\Model\Message\Queue; |
| 16 | 16 | use Tinyissue\Model\Project; |
| 17 | -use Tinyissue\Model\Project\Issue; |
|
| 18 | 17 | use Tinyissue\Services\SendMessagesAbstract; |
| 19 | 18 | |
| 20 | 19 | /** |
@@ -176,7 +176,17 @@ |
||
| 176 | 176 | ->orderBy('position'); |
| 177 | 177 | } |
| 178 | 178 | |
| 179 | + /** |
|
| 180 | + * @param string $related |
|
| 181 | + * @param string $foreignKey |
|
| 182 | + */ |
|
| 179 | 183 | abstract public function hasMany($related, $foreignKey = null, $localKey = null); |
| 180 | 184 | |
| 185 | + /** |
|
| 186 | + * @param string $related |
|
| 187 | + * @param string $table |
|
| 188 | + * @param string $foreignKey |
|
| 189 | + * @param string $otherKey |
|
| 190 | + */ |
|
| 181 | 191 | abstract public function belongsToMany($related, $table = null, $foreignKey = null, $otherKey = null, $relation = null); |
| 182 | 192 | } |
@@ -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 | * |
@@ -82,9 +82,23 @@ |
||
| 82 | 82 | return $this->belongsToMany('Tinyissue\Model\Project', 'projects_kanban_tags', 'project_id', 'tag_id'); |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | + /** |
|
| 86 | + * @param string $related |
|
| 87 | + * @param string $foreignKey |
|
| 88 | + */ |
|
| 85 | 89 | abstract public function belongsTo($related, $foreignKey = null, $otherKey = null, $relation = null); |
| 86 | 90 | |
| 91 | + /** |
|
| 92 | + * @param string $related |
|
| 93 | + * @param string $foreignKey |
|
| 94 | + */ |
|
| 87 | 95 | abstract public function hasMany($related, $foreignKey = null, $localKey = null); |
| 88 | 96 | |
| 97 | + /** |
|
| 98 | + * @param string $related |
|
| 99 | + * @param string $table |
|
| 100 | + * @param string $foreignKey |
|
| 101 | + * @param string $otherKey |
|
| 102 | + */ |
|
| 89 | 103 | abstract public function belongsToMany($related, $table = null, $foreignKey = null, $otherKey = null, $relation = null); |
| 90 | 104 | } |
@@ -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 | * |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | * |
| 33 | 33 | * @param int $userId |
| 34 | 34 | * |
| 35 | - * @return Project\Issue |
|
| 35 | + * @return boolean |
|
| 36 | 36 | */ |
| 37 | 37 | public function changeUpdatedBy($userId) |
| 38 | 38 | { |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | * |
| 79 | 79 | * @param array $input |
| 80 | 80 | * |
| 81 | - * @return Project\Issue |
|
| 81 | + * @return boolean |
|
| 82 | 82 | */ |
| 83 | 83 | public function update(array $input = []) |
| 84 | 84 | { |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | * @param int $status |
| 243 | 243 | * @param UserInterface $user |
| 244 | 244 | * |
| 245 | - * @return Project\Issue |
|
| 245 | + * @return boolean |
|
| 246 | 246 | */ |
| 247 | 247 | public function changeStatus($status, UserInterface $user) |
| 248 | 248 | { |
@@ -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 | */ |