PHP Class Elastica\Connection\Strategy\CallbackStrategy

Author: chabior
Inheritance: implements Elastica\Connection\Strategy\StrategyInterface
Show file Open project: ruflin/elastica Class Usage Examples

Protected Properties

Property Type Description
$_callback callable

Public Methods

Method Description
__construct ( callable $callback )
getConnection ( array | Connection[] $connections ) : Connection
isValid ( callable $callback ) : boolean

Method Details

__construct() public method

public __construct ( callable $callback )
$callback callable

getConnection() public method

public getConnection ( array | Connection[] $connections ) : Connection
$connections array | Elastica\Connection[]
return Elastica\Connection

isValid() public static method

public static isValid ( callable $callback ) : boolean
$callback callable
return boolean

Property Details

$_callback protected property

protected callable $_callback
return callable