From 0ad5349fc745146823d81d971ec0abd9d3508c13 Mon Sep 17 00:00:00 2001
From: Angela Livia Arumsari <16521177@mahasiswa.itb.ac.id>
Date: Mon, 13 Nov 2023 23:10:52 +0700
Subject: [PATCH] feat: add last updated to film model

---
 src/models/FilmModel.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/models/FilmModel.php b/src/models/FilmModel.php
index 0aec4f3..37aaad5 100644
--- a/src/models/FilmModel.php
+++ b/src/models/FilmModel.php
@@ -15,6 +15,7 @@ class FilmModel extends BaseModel
   public $description;
   public $cast;
   public $genre;
+  public $last_updated;
 
   public function __construct()
   {
@@ -33,6 +34,7 @@ class FilmModel extends BaseModel
     $this->description = $array['description'];
     $this->cast = $array['cast'];
     $this->genre = $array['genre'];
+    $this->last_updated = $array['last_updated'];
     return $this;
   }
 
@@ -48,6 +50,7 @@ class FilmModel extends BaseModel
         'description' => $this->description,
         'cast' => $this->cast,
         'genre' => $this->genre,
+        'last_updated' => $this->last_updated
     );
   }
 }
-- 
GitLab