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