1 | <?php |
||
24 | trait RelationTrait |
||
25 | { |
||
26 | /** |
||
27 | * Returns the project issue this activity is belongs to by the item_id, which can hold the issue id. |
||
28 | * |
||
29 | * @return Relations\BelongsTo |
||
30 | */ |
||
31 | 2 | public function issue() |
|
35 | |||
36 | /** |
||
37 | * Returns the user this activity is belongs to. |
||
38 | * |
||
39 | * @return Relations\BelongsTo |
||
40 | */ |
||
41 | 7 | public function user() |
|
45 | |||
46 | /** |
||
47 | * Returns the user that was assigned to the issue. Only for reassign activity. |
||
48 | * |
||
49 | * @return Relations\BelongsTo |
||
50 | */ |
||
51 | 7 | public function assignTo() |
|
55 | |||
56 | /** |
||
57 | * User activity has one activity type. |
||
58 | * |
||
59 | * @return Relations\BelongsTo |
||
60 | */ |
||
61 | 7 | public function activity() |
|
65 | |||
66 | /** |
||
67 | * Returns the comment this activity belongs to if any. |
||
68 | * |
||
69 | * @return Relations\BelongsTo |
||
70 | */ |
||
71 | 7 | public function comment() |
|
75 | |||
76 | /** |
||
77 | * Returns the project his activity belongs to. |
||
78 | * |
||
79 | * @return Relations\BelongsTo |
||
80 | */ |
||
81 | public function project() |
||
85 | |||
86 | /** |
||
87 | * Returns the note this activity belongs to if any. |
||
88 | * |
||
89 | * @return Relations\BelongsTo |
||
90 | */ |
||
91 | 2 | public function note() |
|
95 | } |
||
96 |