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%
7 / 7
100.00% covered (success)
100.00%
7 / 7
100.00% covered (success)
100.00%
7 / 7
CRAP
100.00% covered (success)
100.00%
1 / 1
ExternalElement
100.00% covered (success)
100.00%
7 / 7
100.00% covered (success)
100.00%
7 / 7
100.00% covered (success)
100.00%
7 / 7
100.00% covered (success)
100.00%
7 / 7
7
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
 getExternalId
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
 getLegoId
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
 getExternalPartId
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
 getImagePath
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
 getExternalColorId
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
 getColorName
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\CollectionManagement\Domain\Model\External;
4
5final readonly class ExternalElement
6{
7    public function __construct(
8        private string $externalId,
9        private string $legoId,
10        private string $externalPartId,
11        private string $imagePath,
12        private string $externalColorId,
13        private string $colorName
14    ) {
15
16    }
17
18    public function getExternalId(): string
19    {
20        return $this->externalId;
21    }
22
23    public function getLegoId(): string
24    {
25        return $this->legoId;
26    }
27
28    public function getExternalPartId(): string
29    {
30        return $this->externalPartId;
31    }
32
33    public function getImagePath(): string
34    {
35        return $this->imagePath;
36    }
37
38    public function getExternalColorId(): string
39    {
40        return $this->externalColorId;
41    }
42
43    public function getColorName(): string
44    {
45        return $this->colorName;
46    }
47}

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.

ExternalElement->__construct
7    public function __construct(
8        private string $externalId,
9        private string $legoId,
10        private string $externalPartId,
11        private string $imagePath,
12        private string $externalColorId,
13        private string $colorName
14    ) {
15
16    }
ExternalElement->getColorName
45        return $this->colorName;
46    }
ExternalElement->getExternalColorId
40        return $this->externalColorId;
41    }
ExternalElement->getExternalId
20        return $this->externalId;
21    }
ExternalElement->getExternalPartId
30        return $this->externalPartId;
31    }
ExternalElement->getImagePath
35        return $this->imagePath;
36    }
ExternalElement->getLegoId
25        return $this->legoId;
26    }