Code Coverage |
||||||||||||||||
Lines |
Branches |
Paths |
Functions and Methods |
Classes and Traits |
||||||||||||
| Total | |
100.00% |
4 / 4 |
|
100.00% |
4 / 4 |
|
100.00% |
4 / 4 |
|
100.00% |
4 / 4 |
CRAP | |
100.00% |
1 / 1 |
| NotificationDispatchResult | |
100.00% |
4 / 4 |
|
100.00% |
4 / 4 |
|
100.00% |
4 / 4 |
|
100.00% |
4 / 4 |
4 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getSender | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getStatus | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getMessage | |
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\Dispatcher; |
| 4 | |
| 5 | use App\Enum\NotificationLogStatus; |
| 6 | |
| 7 | /** |
| 8 | * @author Wilhelm Zwertvaegher |
| 9 | */ |
| 10 | readonly class NotificationDispatchResult |
| 11 | { |
| 12 | public function __construct( |
| 13 | private string $sender, |
| 14 | private NotificationLogStatus $status, |
| 15 | private string $message, |
| 16 | ) { |
| 17 | } |
| 18 | |
| 19 | public function getSender(): string |
| 20 | { |
| 21 | return $this->sender; |
| 22 | } |
| 23 | |
| 24 | public function getStatus(): NotificationLogStatus |
| 25 | { |
| 26 | return $this->status; |
| 27 | } |
| 28 | |
| 29 | public function getMessage(): string |
| 30 | { |
| 31 | return $this->message; |
| 32 | } |
| 33 | } |