PHP Class Elastica\Connection\Strategy\CallbackStrategy

Author: chabior
Inheritance: implements Elastica\Connection\Strategy\StrategyInterface
Afficher le fichier Open project: ruflin/elastica Class Usage Examples

Protected Properties

Свойство Type Description
$_callback callable

Méthodes publiques

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

Method Details

__construct() public méthode

public __construct ( callable $callback )
$callback callable

getConnection() public méthode

public getConnection ( array | Connection[] $connections ) : Connection
$connections array | Elastica\Connection[]
Résultat Elastica\Connection

isValid() public static méthode

public static isValid ( callable $callback ) : boolean
$callback callable
Résultat boolean

Property Details

$_callback protected_oe property

protected callable $_callback
Résultat callable