| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | 95 | public function getAnnotationParserFor(RequestAnnotation $annotation) |
|
| 28 | { |
||
| 29 | 95 | foreach ($this->map as $key => $val) { |
|
| 30 | 95 | if ($annotation instanceof $key) { |
|
| 31 | 94 | return new $val; |
|
| 32 | } |
||
| 33 | 16 | } |
|
| 34 | 1 | throw new \Exception('Unsupported annotation: ' . get_class($annotation)); |
|
| 35 | } |
||
| 36 | } |
||
| 37 |