summaryrefslogtreecommitdiff
path: root/src/model/entities/Log.php
diff options
context:
space:
mode:
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}