Code Coverage |
||||||||||||||||
Lines |
Branches |
Paths |
Functions and Methods |
Classes and Traits |
||||||||||||
| Total | |
0.00% |
0 / 5 |
n/a |
0 / 0 |
n/a |
0 / 0 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 1 |
||
| DoctrineUserSet | |
0.00% |
0 / 5 |
n/a |
0 / 0 |
n/a |
0 / 0 |
|
0.00% |
0 / 3 |
12 | |
0.00% |
0 / 1 |
||
| __construct | |
0.00% |
0 / 3 |
n/a |
0 / 0 |
n/a |
0 / 0 |
|
0.00% |
0 / 1 |
2 | |||||
| getId | |
0.00% |
0 / 1 |
n/a |
0 / 0 |
n/a |
0 / 0 |
|
0.00% |
0 / 1 |
2 | |||||
| toDomain | |
0.00% |
0 / 1 |
n/a |
0 / 0 |
n/a |
0 / 0 |
|
0.00% |
0 / 1 |
2 | |||||
| 1 | <?php |
| 2 | |
| 3 | namespace App\CollectionManagement\Infrastructure\Persistence\Doctrine\Entity; |
| 4 | |
| 5 | use App\CollectionManagement\Domain\Model\Local\UserSet; |
| 6 | use App\Shared\Domain\Model\EntityId; |
| 7 | use Doctrine\ORM\Mapping as ORM; |
| 8 | |
| 9 | /** |
| 10 | * @ORM\Entity |
| 11 | * @ORM\Table(name="user_sets") |
| 12 | */ |
| 13 | class DoctrineUserSet |
| 14 | { |
| 15 | #[ORM\Id, ORM\Column(type: "string", length: 36)] |
| 16 | private string $id; |
| 17 | |
| 18 | #[ORM\Column(type: "string", length: 36)] |
| 19 | private string $userId; |
| 20 | |
| 21 | private DoctrineSet $set; |
| 22 | |
| 23 | public function __construct(string $id, string $userId, DoctrineSet $set) |
| 24 | { |
| 25 | $this->id = $id; |
| 26 | $this->userId = $userId; |
| 27 | $this->set = $set; |
| 28 | } |
| 29 | |
| 30 | public function getId(): string |
| 31 | { |
| 32 | return $this->id; |
| 33 | } |
| 34 | |
| 35 | public function toDomain(): UserSet |
| 36 | { |
| 37 | return new UserSet(EntityId::fromString($this->id), EntityId::fromString($this->userId), $this->set->toDomain()); |
| 38 | } |
| 39 | } |
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.