diff options
Diffstat (limited to 'src/model/entities/Email.php')
-rw-r--r-- | src/model/entities/Email.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/model/entities/Email.php b/src/model/entities/Email.php index c6c2a29..9d87f1f 100644 --- a/src/model/entities/Email.php +++ b/src/model/entities/Email.php | |||
@@ -33,8 +33,8 @@ class Email | |||
33 | private ?\DateTime $date_time ; | 33 | private ?\DateTime $date_time ; |
34 | 34 | ||
35 | public function __construct(string $sender, string $recipient, string $content){ | 35 | public function __construct(string $sender, string $recipient, string $content){ |
36 | $this->sender = $sender; | 36 | $this->sender = strtolower($sender); |
37 | $this->recipient = $recipient; | 37 | $this->recipient = strtolower($recipient); |
38 | $this->content = $content; | 38 | $this->content = $content; |
39 | $this->date_time = new \DateTime(); | 39 | $this->date_time = new \DateTime(); |
40 | } | 40 | } |