diff options
| author | polo <ordipolo@gmx.fr> | 2025-07-04 10:29:45 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2025-07-04 10:29:45 +0200 |
| commit | 3104104e838b7d57de49daba0178b1aefe646548 (patch) | |
| tree | 8af33f7bb83ccfef04b6e82a0fcd687ef475d455 /src/model/entities/Email.php | |
| parent | 2d7bacce891eab0adb0263d598bfe44418788f42 (diff) | |
| download | cms-3104104e838b7d57de49daba0178b1aefe646548.tar.gz cms-3104104e838b7d57de49daba0178b1aefe646548.tar.bz2 cms-3104104e838b7d57de49daba0178b1aefe646548.zip | |
formulaire de contact 4
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 | } |
