function __construct(User $user)
 {
     $this->username = $user->getUsername();
     $this->email = $user->getEmail();
     $this->fullname = $user->getFullName();
     $this->telephone = $user->getTelephone();
 }
 private static function insert(User $model)
 {
     $db = DatabaseData::getInstance(\RedDevil\Config\DatabaseConfig::DB_INSTANCE);
     $query = "INSERT INTO users (username,email,password,fullname,telephone) VALUES (:username, :email, :password, :fullname, :telephone);";
     $result = $db->prepare($query);
     $result->execute([':username' => $model->getUsername(), ':email' => $model->getEmail(), ':password' => $model->getPassword(), ':fullname' => $model->getFullname(), ':telephone' => $model->getTelephone()]);
     $model->setId($db->lastInsertId());
 }