| 1 | <?php |
||
| 24 | trait UserRelations |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * Returns the instance of the user in the project. |
||
| 28 | * |
||
| 29 | * @return Model\User |
||
| 30 | */ |
||
| 31 | public function user() |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Returns the instance of the message in the project. |
||
| 38 | * |
||
| 39 | * @return Model\Message |
||
| 40 | */ |
||
| 41 | public function message() |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Returns the instance of the project. |
||
| 48 | * |
||
| 49 | * @return Model\Project |
||
| 50 | */ |
||
| 51 | public function project() |
||
| 55 | |||
| 56 | abstract public function belongsTo($related, $foreignKey = null, $otherKey = null, $relation = null); |
||
| 57 | } |
||
| 58 |