ElasticSearch\Transport\Base::__construct PHP Метод

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

Default constructor, just set host and port
public __construct ( string $host, integer $port )
$host string
$port integer
    public function __construct($host, $port)
    {
        $this->host = $host;
        $this->port = $port;
    }

Usage Example

Пример #1
0
 public function __construct($host = 'localhost', $port = 9200, $timeout = null)
 {
     parent::__construct($host, $port);
     if (null !== $timeout) {
         $this->setTimeout($timeout);
     }
     $this->ch = curl_init();
 }
All Usage Examples Of ElasticSearch\Transport\Base::__construct