| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 52 | public function choose(string $searchStrategyName): StrategyInterface |
||
| 53 | { |
||
| 54 | if (!array_key_exists($searchStrategyName, $this->strategyMap)) { |
||
| 55 | throw StrategyNotFoundException::withSearchStrategyName($searchStrategyName); |
||
| 56 | } |
||
| 57 | |||
| 58 | return $this->strategyMap[$searchStrategyName]; |
||
| 59 | } |
||
| 61 |