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}