Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
33 | public function send(string $object, string $message, $sender, $recipient, string $type = 'DEFAULT', bool $isDeletedSender = true) |
||
34 | { |
||
35 | $entity = new Message(); |
||
36 | $entity->setType($type); |
||
37 | $entity->setObject($object); |
||
38 | $entity->setMessage($message); |
||
39 | $entity->setSender($sender); |
||
40 | $entity->setRecipient($recipient); |
||
41 | $entity->setIsDeletedSender($isDeletedSender); |
||
42 | $this->messageRepository->save($entity); |
||
43 | } |
||
45 |