Code Coverage |
||||||||||||||||
Lines |
Branches |
Paths |
Functions and Methods |
Classes and Traits |
||||||||||||
| Total | |
100.00% |
5 / 5 |
|
100.00% |
5 / 5 |
|
100.00% |
5 / 5 |
|
100.00% |
5 / 5 |
CRAP | |
100.00% |
1 / 1 |
| NotificationProps | |
100.00% |
5 / 5 |
|
100.00% |
5 / 5 |
|
100.00% |
5 / 5 |
|
100.00% |
5 / 5 |
5 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getType | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getRecipientEmail | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getSubject | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getContent | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Service\Notification\Factory; |
| 4 | |
| 5 | use App\Enum\NotificationType; |
| 6 | |
| 7 | /** |
| 8 | * @author Wilhelm Zwertvaegher |
| 9 | */ |
| 10 | class NotificationProps |
| 11 | { |
| 12 | public function __construct( |
| 13 | private NotificationType $type, |
| 14 | private string $recipientEmail, |
| 15 | private string $subject, |
| 16 | private string $content, |
| 17 | ) { |
| 18 | } |
| 19 | |
| 20 | public function getType(): NotificationType |
| 21 | { |
| 22 | return $this->type; |
| 23 | } |
| 24 | |
| 25 | public function getRecipientEmail(): string |
| 26 | { |
| 27 | return $this->recipientEmail; |
| 28 | } |
| 29 | |
| 30 | public function getSubject(): string |
| 31 | { |
| 32 | return $this->subject; |
| 33 | } |
| 34 | |
| 35 | public function getContent(): string |
| 36 | { |
| 37 | return $this->content; |
| 38 | } |
| 39 | } |