| Total Complexity | 7 |
| Total Lines | 58 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class MessageBuilder |
||
| 11 | { |
||
| 12 | private string $type = 'DEFAULT'; |
||
| 13 | private string $object; |
||
| 14 | private string $message; |
||
| 15 | private $sender; |
||
| 16 | private $recipient; |
||
| 17 | |||
| 18 | private EntityManagerInterface $em; |
||
| 19 | |||
| 20 | public function __construct(EntityManagerInterface $em) |
||
| 23 | } |
||
| 24 | |||
| 25 | public function setType(string $type): MessageBuilder |
||
| 26 | { |
||
| 27 | $this->type = $type; |
||
| 28 | return $this; |
||
| 29 | } |
||
| 30 | |||
| 31 | public function setObject(string $object): MessageBuilder |
||
| 32 | { |
||
| 33 | $this->object = $object; |
||
| 34 | return $this; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function setMessage(string $message): MessageBuilder |
||
| 38 | { |
||
| 39 | $this->message = $message; |
||
| 40 | return $this; |
||
| 41 | } |
||
| 42 | |||
| 43 | public function setSender($sender): MessageBuilder |
||
| 44 | { |
||
| 45 | $this->sender = $sender; |
||
| 46 | return $this; |
||
| 47 | } |
||
| 48 | |||
| 49 | public function setRecipient($recipient): MessageBuilder |
||
| 53 | } |
||
| 54 | |||
| 55 | public function send(): void |
||
| 68 | } |
||
| 69 | } |
||
| 70 |