Searched refs:StrategyInterface (Results 1 – 6 of 6) sorted by relevance
15 * @param callable|mixed|StrategyInterface|string $strategyName19 public static function create($strategyName): StrategyInterface21 if ($strategyName instanceof StrategyInterface) {32 if (\class_exists($predefinedStrategy) && \is_subclass_of($predefinedStrategy, StrategyInterface::class)) {36 if (\class_exists($strategyName) && \is_subclass_of($strategyName, StrategyInterface::class)) {
12 interface StrategyInterface interface
12 class CallbackStrategy implements StrategyInterface
13 class Simple implements StrategyInterface
7 use Elastica\Connection\Strategy\StrategyInterface; alias 24 * @var StrategyInterface Strategy for connection33 public function __construct(array $connections, StrategyInterface $strategy, ?callable $callback = null)98 public function getStrategy(): StrategyInterface
180 * Fixed `Elastica\Connection\StrategyInterface` instance checks [#1921](https://github.com/ruflin/Elastica/pull/1921)