Code Coverage
 
Lines
Branches
Paths
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
5 / 5
CRAP
100.00% covered (success)
100.00%
1 / 1
NotificationProps
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
5 / 5
5
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getType
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getRecipientEmail
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getSubject
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getContent
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace App\Service\Notification\Factory;
4
5use App\Enum\NotificationType;
6
7/**
8 * @author Wilhelm Zwertvaegher
9 */
10class 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}

Branches

Below are the source code lines that represent each code branch as identified by Xdebug. Please note a branch is not necessarily coterminous with a line, a line may contain multiple branches and therefore show up more than once. Please also be aware that some branches may be implicit rather than explicit, e.g. an if statement always has an else as part of its logical flow even if you didn't write one.

NotificationProps->__construct
12    public function __construct(
13        private NotificationType $type,
14        private string $recipientEmail,
15        private string $subject,
16        private string $content,
17    ) {
18    }
NotificationProps->getContent
37        return $this->content;
38    }
NotificationProps->getRecipientEmail
27        return $this->recipientEmail;
28    }
NotificationProps->getSubject
32        return $this->subject;
33    }
NotificationProps->getType
22        return $this->type;
23    }
{main}
3namespace App\Service\Notification\Factory;
4
5use App\Enum\NotificationType;
6
7/**
8 * @author Wilhelm Zwertvaegher
9 */
10class 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    }