\Elastica\Connection\StrategyCallbackStrategy

Description of CallbackStrategy.

Summary

Methods
Properties
Constants
__construct()
getConnection()
isValid()
No public properties found
No constants found
No protected methods found
$_callback
N/A
No private methods found
No private properties found
N/A

Properties

$_callback

$_callback : callable

Type

callable

Methods

__construct()

__construct(callable  $callback) 

Parameters

callable $callback

Throws

\Elastica\Exception\InvalidException

getConnection()

getConnection(array|array<mixed,\Elastica\Connection>  $connections) : \Elastica\Connection

Parameters

array|array<mixed,\Elastica\Connection> $connections

Returns

\Elastica\Connection

isValid()

isValid(callable  $callback) : boolean

Parameters

callable $callback

Returns

boolean