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 | } |
Below are the source code lines that represent each code path as identified by Xdebug. Please note a path is not
necessarily coterminous with a line, a line may contain multiple paths and therefore show up more than once.
Please also be aware that some paths may include implicit rather than explicit branches, e.g. an if statement
always has an else as part of its logical flow even if you didn't write one.
| 12 | public function __construct( |
| 13 | private NotificationType $type, |
| 14 | private string $recipientEmail, |
| 15 | private string $subject, |
| 16 | private string $content, |
| 17 | ) { |
| 18 | } |
| 37 | return $this->content; |
| 38 | } |
| 27 | return $this->recipientEmail; |
| 28 | } |
| 32 | return $this->subject; |
| 33 | } |
| 22 | return $this->type; |
| 23 | } |
| 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 | } |