Searched refs:strategyName (Results 1 – 2 of 2) sorted by relevance
15 * @param callable|mixed|StrategyInterface|string $strategyName19 public static function create($strategyName): StrategyInterface argument 21 if ($strategyName instanceof StrategyInterface) {22 return $strategyName;25 if (\is_callable($strategyName)) {26 return new CallbackStrategy($strategyName);29 if (\is_string($strategyName)) {30 $predefinedStrategy = '\\Elastica\\Connection\\Strategy\\'.$strategyName;36 if (\class_exists($strategyName) && \is_subclass_of($strategyName, StrategyInterfac[all...]
54 * @param string $strategyName60 public function test_pagenameStrategy($strategyName, $baseNS, $name, $expectedPageId, $msg) argument66 $strategy = PageNameStrategy::getPagenameStategy($strategyName);