Home
last modified time | relevance | path

Searched refs:strategyName (Results 1 – 2 of 2) sorted by relevance

/plugin/elasticsearch/vendor/ruflin/elastica/lib/Elastica/Connection/Strategy/
H A DStrategyFactory.php15 * @param mixed|callable|string|StrategyInterface $strategyName
21 public static function create($strategyName): StrategyInterface argument
23 if ($strategyName instanceof StrategyInterface) {
24 return $strategyName;
27 if (\is_callable($strategyName)) {
28 return new CallbackStrategy($strategyName);
31 if (\is_string($strategyName)) {
33 $predefinedStrategy = '\\Elastica\\Connection\\Strategy\\'.$strategyName;
39 … if (\class_exists($strategyName) && \class_implements($strategyName, $requiredInterface)) {
40 return new $strategyName();
/plugin/yearbox/_test/
H A DpagenameStrategy.test.php54 * @param string $strategyName
60 public function test_pagenameStrategy($strategyName, $baseNS, $name, $expectedPageId, $msg) argument
66 $strategy = PageNameStrategy::getPagenameStategy($strategyName);