protected function credentials() { if (isset($this->credentials)) { return $this->credentials; } throw new CredentialsException(); }