1 | <?php |
||
22 | class BaseMongoMessageQuery extends BaseMongoBlameableQuery |
||
23 | { |
||
24 | use MessageQueryTrait; |
||
25 | |||
26 | /** |
||
27 | * Get the opposite relation. |
||
28 | * @param BaseUserModel|string $user initiator |
||
29 | * @param BaseUserModel|string $other recipient. |
||
30 | * @param Connection $database |
||
31 | * @return {$model->class} |
||
|
|||
32 | */ |
||
33 | public function opposite($user, $other, $database = null) |
||
40 | |||
41 | /** |
||
42 | * Get all the opposites. |
||
43 | * @param string $user initator. |
||
44 | * @param array $others all recipients. |
||
45 | * @param Connection $database |
||
46 | * @return array instances. |
||
47 | */ |
||
48 | public function opposites($user, $others = [], $database = null) |
||
58 | |||
59 | /** |
||
60 | * Specify initiators. |
||
61 | * @param string|array $users the guid of initiator if string, or guid array |
||
62 | * of initiators if array. |
||
63 | * @return static $this |
||
64 | */ |
||
65 | public function initiators($users = []) |
||
73 | |||
74 | /** |
||
75 | * Specify recipients. |
||
76 | * @param string|array $users the guid of recipient if string, or guid array |
||
77 | * of recipients if array. |
||
78 | * @return static $this |
||
79 | */ |
||
80 | public function recipients($users = []) |
||
88 | } |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.