Conditions | 3 |
Paths | 4 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
25 | 18 | public function setRecipient(?User $recipient): void |
|
26 | { |
||
27 | 18 | if ($this->recipient) { |
|
28 | 1 | $this->recipient->messageRemoved($this); |
|
29 | } |
||
30 | |||
31 | 18 | $this->recipient = $recipient; |
|
32 | 18 | $this->setOwner($recipient); |
|
33 | |||
34 | 18 | if ($this->recipient) { |
|
35 | 17 | $this->recipient->messageAdded($this); |
|
36 | } |
||
47 |