| 1 | <?php |
||
| 9 | class Thread extends MessengerThread implements ThreadContract |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * {@inheritdoc} |
||
| 13 | */ |
||
| 14 | public function messages() |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Generates a string of participant information. |
||
| 21 | * |
||
| 22 | * @param User $excludingUser User to be excluded from string. |
||
| 23 | * @param bool $array Whether an array should be returned. |
||
| 24 | * |
||
| 25 | * @return string |
||
| 26 | */ |
||
| 27 | public function participantsString($excludingUser = null, $array = false) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Mark a thread as unread for a user. |
||
| 42 | * |
||
| 43 | * @param int $userId |
||
| 44 | */ |
||
| 45 | public function markAsUnread($userId) |
||
| 55 | } |
||
| 56 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@returnannotation as described here.