| Total Complexity | 9 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | final class ApplyEmailMessageOptions |
||
| 12 | { |
||
| 13 | 1 | public function apply(Email $email, MessageOptions $messageOptions): void |
|
| 14 | { |
||
| 15 | 1 | $this->applyParticipants($email, $messageOptions->getParticipants()); |
|
| 16 | |||
| 17 | 1 | if ($messageOptions->hasSubject()) { |
|
| 18 | 1 | $email->subject((string) $messageOptions->getSubject()); |
|
| 19 | } |
||
| 20 | 1 | } |
|
| 21 | |||
| 22 | 1 | private function applyParticipants(Email $email, Participants $participants): void |
|
| 46 | } |
||
| 47 | 1 | } |
|
| 49 |