public getUsername ( ) : string | ||
return | string |
public function getUsername()
{
return $this->username;
}
/** * Instantiates a new binding. * * @param BindingParameters $parameters * @param HttpClientAdapterInterface $adapter */ public function __construct(BindingParameters $parameters, HttpClientAdapterInterface $adapter = null) { $this->server = "{$parameters->getHost()}:{$parameters->getPort()}"; $this->database = $parameters->getDatabase(); $this->adapter = $adapter ?: new CurlClientAdapter(new CurlClient()); $this->setAuthentication($parameters->getUsername(), $parameters->getPassword()); }