Conditions | 7 |
Paths | 64 |
Total Lines | 24 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 13 |
CRAP Score | 7 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | 1 | private function applyParticipants(Email $email, Participants $participants): void |
|
23 | { |
||
24 | 1 | if ($participants->hasSender()) { |
|
25 | 1 | $email->sender($participants->getSender()); |
|
26 | } |
||
27 | |||
28 | 1 | if ($participants->hasFrom()) { |
|
29 | 1 | $email->from(...$participants->getFrom()); |
|
30 | } |
||
31 | |||
32 | 1 | if ($participants->hasReplyTo()) { |
|
33 | 1 | $email->replyTo(...$participants->getReplyTo()); |
|
34 | } |
||
35 | |||
36 | 1 | if ($participants->hasTo()) { |
|
37 | 1 | $email->to(...$participants->getTo()); |
|
38 | } |
||
39 | |||
40 | 1 | if ($participants->hasCc()) { |
|
41 | 1 | $email->cc(...$participants->getCc()); |
|
42 | } |
||
43 | |||
44 | 1 | if ($participants->hasBcc()) { |
|
45 | 1 | $email->bcc(...$participants->getBcc()); |
|
46 | } |
||
49 |