| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 8 |
| Ratio | 100 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 42 | View Code Duplication | public function getStrategy($name) |
|
| 43 | { |
||
| 44 | if (array_key_exists($name, $this->stopStrategies)) { |
||
| 45 | return $this->stopStrategies[$name]; |
||
| 46 | } else { |
||
| 47 | throw new \RuntimeException("Strategy ('" . $name . "') not found. Available strategies are " . implode(', ', array_keys($this->stopStrategies))); |
||
| 48 | } |
||
| 49 | } |
||
| 50 | } |
||
| 51 |