| Total Complexity | 3 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | class OneToOneStrategyPool |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * Array of search to parse strategy mappings |
||
| 28 | * |
||
| 29 | * @var array |
||
| 30 | */ |
||
| 31 | private $strategyMap; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * OneToOneStrategyPool constructor. |
||
| 35 | * |
||
| 36 | * @param array $strategyMap Roadmap search strategy to parse strategy mappings |
||
| 37 | */ |
||
| 38 | public function __construct(array $strategyMap) |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Returns parse strategy that supports specified search strategy |
||
| 45 | * |
||
| 46 | * @param string $searchStrategyName Name of vacancy search algorithm for specific website-provider |
||
| 47 | * |
||
| 48 | * @return StrategyInterface Parsing strategy |
||
| 49 | * |
||
| 50 | * @throws StrategyNotFoundException |
||
| 51 | */ |
||
| 52 | public function choose(string $searchStrategyName): StrategyInterface |
||
| 61 |