Code Coverage
 
Lines
Branches
Paths
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
7 / 7
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
Suggestion
100.00% covered (success)
100.00%
7 / 7
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%
3 / 3
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
 getId
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
 getCreatorEmail
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
 getLabel
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
 getCreatedAt
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\Entity;
4
5use Doctrine\ORM\Mapping as ORM;
6
7/**
8 * @author Wilhelm Zwertvaegher
9 */
10#[ORM\Entity]
11#[ORM\Table(name: 'suggestion')]
12class Suggestion
13{
14    #[ORM\Id]
15    #[ORM\GeneratedValue]
16    #[ORM\Column(type: 'integer')]
17    private ?int $id = null;
18
19    #[ORM\Column(type: 'string', length: 100, nullable: true)]
20    private ?string $creatorEmail;
21
22    #[ORM\Column(type: 'string', length: 50)]
23    private string $label;
24
25    #[ORM\Column(type: 'datetime_immutable')]
26    private \DateTimeImmutable $createdAt;
27
28    public function __construct(
29        ?string $creatorEmail,
30        string $label,
31        \DateTimeImmutable $createdAt,
32    ) {
33        $this->creatorEmail = $creatorEmail;
34        $this->label = $label;
35        $this->createdAt = $createdAt;
36    }
37
38    public function getId(): ?int
39    {
40        return $this->id;
41    }
42
43    public function getCreatorEmail(): ?string
44    {
45        return $this->creatorEmail;
46    }
47
48    public function getLabel(): string
49    {
50        return $this->label;
51    }
52
53    public function getCreatedAt(): \DateTimeImmutable
54    {
55        return $this->createdAt;
56    }
57}

Paths

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.

Suggestion->__construct
28    public function __construct(
29        ?string $creatorEmail,
30        string $label,
31        \DateTimeImmutable $createdAt,
32    ) {
33        $this->creatorEmail = $creatorEmail;
34        $this->label = $label;
35        $this->createdAt = $createdAt;
36    }
Suggestion->getCreatedAt
55        return $this->createdAt;
56    }
Suggestion->getCreatorEmail
45        return $this->creatorEmail;
46    }
Suggestion->getId
40        return $this->id;
41    }
Suggestion->getLabel
50        return $this->label;
51    }
{main}
3namespace App\Entity;
4
5use Doctrine\ORM\Mapping as ORM;
6
7/**
8 * @author Wilhelm Zwertvaegher
9 */
10#[ORM\Entity]
11#[ORM\Table(name: 'suggestion')]
12class Suggestion
13{
14    #[ORM\Id]
15    #[ORM\GeneratedValue]
16    #[ORM\Column(type: 'integer')]
17    private ?int $id = null;
18
19    #[ORM\Column(type: 'string', length: 100, nullable: true)]
20    private ?string $creatorEmail;
21
22    #[ORM\Column(type: 'string', length: 50)]
23    private string $label;
24
25    #[ORM\Column(type: 'datetime_immutable')]
26    private \DateTimeImmutable $createdAt;
27
28    public function __construct(
29        ?string $creatorEmail,
30        string $label,
31        \DateTimeImmutable $createdAt,
32    ) {
33        $this->creatorEmail = $creatorEmail;
34        $this->label = $label;
35        $this->createdAt = $createdAt;
36    }
37
38    public function getId(): ?int
39    {
40        return $this->id;
41    }
42
43    public function getCreatorEmail(): ?string
44    {
45        return $this->creatorEmail;
46    }
47
48    public function getLabel(): string
49    {
50        return $this->label;
51    }
52
53    public function getCreatedAt(): \DateTimeImmutable
54    {
55        return $this->createdAt;
56    }