Passed
Push — develop ( 6aca70...d56297 )
by BENARD
02:32
created

MessageProvider::getRecipients()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace ProjetNormandie\MessageBundle\Service;
4
5
use ProjetNormandie\MessageBundle\Repository\MessageRepository;
6
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)
34
    {
35
        return $this->messageRepository->getSenders($user);
36
    }
37
}
38