@@ -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 | } |
@@ -43,7 +43,7 @@ |
||
43 | 43 | /** |
44 | 44 | * Eager load relations on the model. |
45 | 45 | * |
46 | - * @param array|string $relations |
|
46 | + * @param string $relations |
|
47 | 47 | * |
48 | 48 | * @return $this |
49 | 49 | */ |
@@ -182,6 +182,10 @@ |
||
182 | 182 | return $query; |
183 | 183 | } |
184 | 184 | |
185 | + /** |
|
186 | + * @param string $related |
|
187 | + * @param string $foreignKey |
|
188 | + */ |
|
185 | 189 | abstract public function hasOne($related, $foreignKey = null, $localKey = null); |
186 | 190 | abstract public function isPrivateInternal(); |
187 | 191 | } |
@@ -124,8 +124,20 @@ |
||
124 | 124 | } |
125 | 125 | |
126 | 126 | abstract public function fill(array $attributes); |
127 | + |
|
128 | + /** |
|
129 | + * @param User $changeBy |
|
130 | + */ |
|
127 | 131 | abstract public function queueAdd(Issue\Comment $issue, $changeBy); |
132 | + |
|
133 | + /** |
|
134 | + * @param User $changeBy |
|
135 | + */ |
|
128 | 136 | abstract public function queueUpdate(Issue\Comment $issue, $changeBy); |
137 | + |
|
138 | + /** |
|
139 | + * @param User $changeBy |
|
140 | + */ |
|
129 | 141 | abstract public function queueDelete(Issue\Comment $issue, $changeBy); |
130 | 142 | abstract public function save(array $options = []); |
131 | 143 | abstract public function activity(); |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | * Insert add note to message queue. |
30 | 30 | * |
31 | 31 | * @param Note $note |
32 | - * @param User $changeBy |
|
32 | + * @param UserInterface $changeBy |
|
33 | 33 | * |
34 | 34 | * @return void |
35 | 35 | */ |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | * Insert update note to message queue. |
43 | 43 | * |
44 | 44 | * @param Note $note |
45 | - * @param User $changeBy |
|
45 | + * @param UserInterface $changeBy |
|
46 | 46 | * |
47 | 47 | * @return void |
48 | 48 | */ |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | * Insert delete note to message queue. |
61 | 61 | * |
62 | 62 | * @param Note $note |
63 | - * @param User $changeBy |
|
63 | + * @param UserInterface $changeBy |
|
64 | 64 | * |
65 | 65 | * @return void |
66 | 66 | */ |
@@ -215,8 +215,16 @@ |
||
215 | 215 | abstract public function filterAssignTo(Relations\HasMany $query, $userId); |
216 | 216 | abstract public function filterTitleOrBody(Relations\HasMany $query, $keyword); |
217 | 217 | abstract public function filterTags(Relations\HasMany $query, $tags); |
218 | + |
|
219 | + /** |
|
220 | + * @return boolean |
|
221 | + */ |
|
218 | 222 | abstract public function isPrivateInternal(); |
219 | 223 | abstract public function filterCreatedBy(Relations\HasMany $query, $userId, $enabled = false); |
220 | 224 | abstract public function sortByUpdated(Relations\HasMany $query, $order = 'asc'); |
225 | + |
|
226 | + /** |
|
227 | + * @param string $tagGroup |
|
228 | + */ |
|
221 | 229 | abstract public function sortByTag(Relations\HasMany $query, $tagGroup, $order = 'asc'); |
222 | 230 | } |
@@ -182,6 +182,10 @@ |
||
182 | 182 | return $query; |
183 | 183 | } |
184 | 184 | |
185 | + /** |
|
186 | + * @param string $related |
|
187 | + * @param string $foreignKey |
|
188 | + */ |
|
185 | 189 | abstract public function hasOne($related, $foreignKey = null, $localKey = null); |
186 | 190 | abstract public function isPrivateInternal(); |
187 | 191 | } |
@@ -72,8 +72,27 @@ |
||
72 | 72 | return $this->morphMany('Tinyissue\Model\Message\Queue', 'model'); |
73 | 73 | } |
74 | 74 | |
75 | + /** |
|
76 | + * @param string $related |
|
77 | + * @param string $name |
|
78 | + */ |
|
75 | 79 | abstract public function morphMany($related, $name, $type = null, $id = null, $localKey = null); |
80 | + |
|
81 | + /** |
|
82 | + * @param string $related |
|
83 | + * @param string $foreignKey |
|
84 | + */ |
|
76 | 85 | abstract public function hasOne($related, $foreignKey = null, $localKey = null); |
86 | + |
|
87 | + /** |
|
88 | + * @param string $related |
|
89 | + * @param string $foreignKey |
|
90 | + */ |
|
77 | 91 | abstract public function hasMany($related, $foreignKey = null, $localKey = null); |
92 | + |
|
93 | + /** |
|
94 | + * @param string $related |
|
95 | + * @param string $foreignKey |
|
96 | + */ |
|
78 | 97 | abstract public function belongsTo($related, $foreignKey = null, $otherKey = null, $relation = null); |
79 | 98 | } |
@@ -161,9 +161,30 @@ |
||
161 | 161 | return $this->morphMany('Tinyissue\Model\Message\Queue', 'model'); |
162 | 162 | } |
163 | 163 | |
164 | + /** |
|
165 | + * @param string $related |
|
166 | + * @param string $table |
|
167 | + * @param string $foreignKey |
|
168 | + * @param string $otherKey |
|
169 | + */ |
|
164 | 170 | abstract public function belongsToMany($related, $table = null, $foreignKey = null, $otherKey = null, $relation = null); |
171 | + |
|
172 | + /** |
|
173 | + * @param string $related |
|
174 | + * @param string $foreignKey |
|
175 | + */ |
|
165 | 176 | abstract public function hasMany($related, $foreignKey = null, $localKey = null); |
177 | + |
|
178 | + /** |
|
179 | + * @param string $related |
|
180 | + * @param string $name |
|
181 | + */ |
|
166 | 182 | abstract public function morphMany($related, $name, $type = null, $id = null, $localKey = null); |
167 | 183 | abstract public function hasOne($related, $foreignKey = null, $localKey = null); |
184 | + |
|
185 | + /** |
|
186 | + * @param string $related |
|
187 | + * @param string $foreignKey |
|
188 | + */ |
|
168 | 189 | abstract public function belongsTo($related, $foreignKey = null, $otherKey = null, $relation = null); |
169 | 190 | } |