Doctrine\OrientDB\Binding\BindingParameters::getHost PHP Метод

getHost() публичный Метод

Returns the specified IP host pointing to the OrientDB server.
public getHost ( ) : string
Результат string
    public function getHost()
    {
        return $this->host;
    }

Usage Example

Пример #1
0
 /**
  * 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());
 }
All Usage Examples Of Doctrine\OrientDB\Binding\BindingParameters::getHost