| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 13 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 7 | 
| CRAP Score | 2 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 44 | 3 | private function getRoutingKeyFromMessageRoute(Message $message): string  | 
            |
| 45 | 	{ | 
            ||
| 46 | 3 | 		if (empty($this->routes[$message->messageName()])) { | 
            |
| 47 | 1 | throw new RuntimeException(  | 
            |
| 48 | 1 | sprintf(  | 
            |
| 49 | 1 | 'Producer route key for message of name "%s" in asynchronous routing not found.',  | 
            |
| 50 | 1 | $message->messageName()  | 
            |
| 51 | )  | 
            ||
| 52 | );  | 
            ||
| 53 | }  | 
            ||
| 54 | |||
| 55 | 2 | return $this->routes[$message->messageName()];  | 
            |
| 56 | }  | 
            ||
| 57 | }  | 
            ||
| 58 |