| 1 | <?php |
||
| 10 | class UserId |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var int|null |
||
| 14 | */ |
||
| 15 | private $userId; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param int|null $userId |
||
| 19 | */ |
||
| 20 | 5 | public function __construct(?int $userId) |
|
| 21 | { |
||
| 22 | 5 | $this->userId = $userId; |
|
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @return int|null |
||
| 27 | */ |
||
| 28 | 4 | public function getValue(): ?int |
|
| 32 | |||
| 33 | /** |
||
| 34 | * @param UserId $userId |
||
| 35 | * @return bool |
||
| 36 | */ |
||
| 37 | 1 | public function equals(UserId $userId): bool |
|
| 41 | } |
||
| 42 |