1 | <?php |
||
25 | trait RelationTrait |
||
26 | { |
||
27 | /** |
||
28 | * Returns the parent/group for the tag. |
||
29 | * |
||
30 | * @return Relations\BelongsTo |
||
31 | */ |
||
32 | 25 | public function parent() |
|
36 | |||
37 | /** |
||
38 | * Parent tag/group have many tags. |
||
39 | * |
||
40 | * @return Relations\HasMany |
||
41 | */ |
||
42 | 5 | public function tags() |
|
46 | |||
47 | /** |
||
48 | * Returns issues for the Tag. Tag can belong to many issues & issue can have many tags. |
||
49 | * |
||
50 | * @return Relations\BelongsToMany |
||
51 | */ |
||
52 | public function issues() |
||
56 | |||
57 | /** |
||
58 | * Returns projects for the Tag. Tag can belong to many projects & project can have many tags. |
||
59 | * |
||
60 | * @return Relations\BelongsToMany |
||
61 | */ |
||
62 | public function projects() |
||
66 | } |
||
67 |