| Conditions | 2 | 
| Paths | 1 | 
| Total Lines | 12 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 7 | 
| CRAP Score | 2 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 47 | 7 | public function getDispatcher()  | 
            |
| 48 |     { | 
            ||
| 49 | // Generic Dispatcher for RestServer  | 
            ||
| 50 |         return simpleDispatcher(function (RouteCollector $r) { | 
            ||
| 51 | |||
| 52 | 7 |             foreach ($this->getRoutes() as $route) { | 
            |
| 53 | 7 | $r->addRoute(  | 
            |
| 54 | 7 | $route->getMethod(),  | 
            |
| 55 | 7 | $route->getPattern(),  | 
            |
| 56 | [  | 
            ||
| 57 | 7 | "output_processor" => $route->getOutputProcessor(),  | 
            |
| 58 | 7 | "class" => $route->getClass(),  | 
            |
| 59 | ]  | 
            ||
| 65 | }  |