Total Complexity | 3 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class MessageProvider |
||
8 | { |
||
9 | private MessageRepository $messageRepository; |
||
10 | |||
11 | /** |
||
12 | * Message constructor. |
||
13 | * @param MessageRepository $messageRepository |
||
14 | */ |
||
15 | public function __construct(MessageRepository $messageRepository) |
||
16 | { |
||
17 | $this->messageRepository = $messageRepository; |
||
18 | } |
||
19 | |||
20 | /** |
||
21 | * @param $user |
||
22 | * @return mixed |
||
23 | */ |
||
24 | public function getRecipients($user) |
||
25 | { |
||
26 | return $this->messageRepository->getRecipients($user); |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @param $user |
||
31 | * @return mixed |
||
32 | */ |
||
33 | public function getSenders($user) |
||
36 | } |
||
37 | } |
||
38 |