/** * * @param \Repository\User $user * @return type */ public function save(\Models\UserModels $user) { $query = "INSERT INTO users (username, password) VALUES (?, ?)"; $param = [$user->getUsername(), $user->getPasword()]; $this->db->query($query, $param); return $this->db->row(); }