summaryrefslogtreecommitdiff
path: root/src/model/entities/Log.php
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2025-05-29 12:43:52 +0200
committerpolo <ordipolo@gmx.fr>2025-05-29 12:43:52 +0200
commitfa5a9a434f02f16166d1098f8a60f067830720eb (patch)
treec96022850f0f9fcbaa340c79d56e5911bd5cf75b /src/model/entities/Log.php
parent99e990c131b5fa122984a869bea95f3e9074bc7b (diff)
downloadcms-fa5a9a434f02f16166d1098f8a60f067830720eb.zip
logs connections failed
Diffstat (limited to 'src/model/entities/Log.php')
-rw-r--r--src/model/entities/Log.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/model/entities/Log.php b/src/model/entities/Log.php
index 7c2caa9..06a907e 100644
--- a/src/model/entities/Log.php
+++ b/src/model/entities/Log.php
@@ -22,7 +22,11 @@ class Log
22 //#[ORM\Column(type: 'datetime', columnDefinition: "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")] 22 //#[ORM\Column(type: 'datetime', columnDefinition: "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")]
23 private ?\DateTime $date_time ; // le type datetime de doctrine convertit en type \DateTime de PHP 23 private ?\DateTime $date_time ; // le type datetime de doctrine convertit en type \DateTime de PHP
24 24
25 public function __construct(){ 25 #[ORM\Column(type: "boolean")]
26 private bool $success;
27
28 public function __construct(bool $success){
26 $this->date_time = new \DateTime(); 29 $this->date_time = new \DateTime();
30 $this->success = $success;
27 } 31 }
28} 32}