function __construct(Venue $venue)
 {
     $this->id = $venue->getId();
     $this->title = $venue->getTitle();
     $this->address = $venue->getAddress();
     $this->description = $venue->getDescription();
 }
 public function __construct(Venue $model)
 {
     $this->id = $model->getId();
     $this->title = $model->getTitle();
     $this->address = $model->getAddress();
 }
 private static function update(Venue $model)
 {
     $db = DatabaseData::getInstance(\RedDevil\Config\DatabaseConfig::DB_INSTANCE);
     $query = "UPDATE venues SET Title= :Title, Description= :Description, Address= :Address, OwnerId= :OwnerId WHERE id = :id";
     $result = $db->prepare($query);
     $result->execute([':id' => $model->getId(), ':Title' => $model->getTitle(), ':Description' => $model->getDescription(), ':Address' => $model->getAddress(), ':OwnerId' => $model->getOwnerId()]);
 }