/** * sets $this->user with a user object where the id is $id * * @param $id */ public function setUserById($id) { $this->user = User::constructUserByID($id); }