Code Coverage
 
Lines
Branches
Paths
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
4 / 4
CRAP
100.00% covered (success)
100.00%
1 / 1
UserSet
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
4 / 4
4
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
 getLocalSet
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
 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
 getUserId
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\Local;
4
5use App\Shared\Domain\Model\EntityId;
6
7/**
8 * A local user's set which consists of an id and a local set
9 * TODO : add meaningful information, such as status (OWNED, WANTED...), status last update, rating...
10 *
11 * @author Wilhelm Zwertvaegher
12 */
13readonly class UserSet
14{
15    public function __construct(
16        private EntityId $id,
17        private EntityId $userId,
18        private Set $localSet
19    ) {
20    }
21
22    public function getLocalSet(): Set
23    {
24        return $this->localSet;
25    }
26
27    public function getId(): EntityId
28    {
29        return $this->id;
30    }
31
32    public function getUserId(): EntityId
33    {
34        return $this->userId;
35    }
36
37}

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.

UserSet->__construct
15    public function __construct(
16        private EntityId $id,
17        private EntityId $userId,
18        private Set $localSet
19    ) {
20    }
UserSet->getId
29        return $this->id;
30    }
UserSet->getLocalSet
24        return $this->localSet;
25    }
UserSet->getUserId
34        return $this->userId;
35    }
{main}
3namespace App\CollectionManagement\Domain\Model\Local;
4
5use App\Shared\Domain\Model\EntityId;
6
7/**
8 * A local user's set which consists of an id and a local set
9 * TODO : add meaningful information, such as status (OWNED, WANTED...), status last update, rating...
10 *
11 * @author Wilhelm Zwertvaegher
12 */
13readonly class UserSet
14{
15    public function __construct(
16        private EntityId $id,
17        private EntityId $userId,
18        private Set $localSet
19    ) {
20    }
21
22    public function getLocalSet(): Set
23    {
24        return $this->localSet;
25    }
26
27    public function getId(): EntityId
28    {
29        return $this->id;
30    }
31
32    public function getUserId(): EntityId
33    {
34        return $this->userId;
35    }
36