aboutsummaryrefslogtreecommitdiff
path: root/src/model/entities
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/entities')
-rw-r--r--src/model/entities/Log.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/model/entities/Log.php b/src/model/entities/Log.php
index eeb76e4..222b8db 100644
--- a/src/model/entities/Log.php
+++ b/src/model/entities/Log.php
@@ -26,4 +26,13 @@ class Log
26 $this->date_time = new \DateTime; 26 $this->date_time = new \DateTime;
27 $this->success = $success; 27 $this->success = $success;
28 } 28 }
29
30 public function getFormatedDate(): string
31 {
32 return $this->date_time->format('d/m/Y à H\hi');
33 }
34 public function getSuccess(): bool
35 {
36 return $this->success;
37 }
29} 38}