public function set_credentials($user, $pass) { $this->username = $user; $this->password = $pass; return $this; }