$_connection
$_connection : \Elastica\Connection
Elastica Null Transport object.
This class is for backward compatibility reason for all php < 7 versions. For PHP 7 and above use NullTransport as Null is reserved.
$_connection : \Elastica\Connection
exec(\Elastica\Request $request, array $params) : \Elastica\Response
Executes the transport request.
\Elastica\Request | $request | Request object |
array | $params | Hostname, port, path, ... |
Response object
__construct(\Elastica\Connection $connection = null)
Construct transport.
\Elastica\Connection | $connection | Connection object |
getConnection() : \Elastica\Connection
Connection object
setConnection(\Elastica\Connection $connection) : $this
\Elastica\Connection | $connection | Connection object |
create(mixed $transport, \Elastica\Connection $connection, array $params = array()) : \Elastica\Transport\AbstractTransport
Create a transport.
The $transport parameter can be one of the following values:
mixed | $transport | A transport definition |
\Elastica\Connection | $connection | A connection instance |
array | $params | Parameters for the transport class |