| Total Complexity | 2 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class Messager |
||
| 12 | { |
||
| 13 | private MessageRepository $messageRepository; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Message constructor. |
||
| 17 | * @param MessageRepository $messageRepository |
||
| 18 | */ |
||
| 19 | public function __construct(MessageRepository $messageRepository) |
||
| 22 | } |
||
| 23 | |||
| 24 | |||
| 25 | /** |
||
| 26 | * @param string $object |
||
| 27 | * @param string $message |
||
| 28 | * @param $sender |
||
| 29 | * @param $recipient |
||
| 30 | * @param string $type |
||
| 31 | * @param bool $isDeletedSender |
||
| 32 | */ |
||
| 33 | public function send(string $object, string $message, $sender, $recipient, string $type = 'DEFAULT', bool $isDeletedSender = true) |
||
| 45 |