| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 36 | public function resolve(Command $command) | ||
| 37 |     { | ||
| 38 |         if (array_key_exists($command = get_class($command), $this->commands)) { | ||
| 39 | return $this->container->make($this->commands[$command]); | ||
| 40 | } | ||
| 41 | |||
| 42 |         throw new UnresolvableHandlerException("Unable to resolve handler for $command"); | ||
| 43 | } | ||
| 44 | } | ||
| 45 |