/** * @return bool */ public function hasHttpCredentials() { return $this->httpCredentials->present(); }
/** * @return string[]|null */ public function getAuthData() { return $this->httpCredentials && $this->httpCredentials->present() ? [$this->httpCredentials->getUsername(), $this->httpCredentials->getPassword()] : null; }