@@ -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 | * |
@@ -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 | * |
@@ -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 | { |