From 4ab2748498ddbe8e2f1f38e971cda29386f24087 Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Wed, 29 Oct 2025 22:07:43 +0200 Subject: [PATCH] add id to user --- src/Domain/User.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Domain/User.php b/src/Domain/User.php index 6edda0b..2b70d3a 100644 --- a/src/Domain/User.php +++ b/src/Domain/User.php @@ -4,5 +4,12 @@ namespace DigiWill\Domain; class User { + public function __construct( + private ?int $id + ) {} + public function getId(): ?int + { + return $this->id; + } }