| @@ 38-48 (lines=11) @@ | ||
| 35 | ||
| 36 | }  | 
                                |
| 37 | ||
| 38 | public function getRoutingKeyFromHeader()  | 
                                |
| 39 |     { | 
                                |
| 40 | $headers = $this->getHeaders();  | 
                                |
| 41 | ||
| 42 |         if(! array_key_exists('routing_key', $headers)) | 
                                |
| 43 |         { | 
                                |
| 44 | return null;  | 
                                |
| 45 | }  | 
                                |
| 46 | ||
| 47 | return $headers['routing_key'];  | 
                                |
| 48 | }  | 
                                |
| 49 | }  | 
                                |
| 50 | ||
| @@ 157-167 (lines=11) @@ | ||
| 154 | return (!empty($retryHeader) && (int) $retryHeader === $retryOccurence);  | 
                                |
| 155 | }  | 
                                |
| 156 | ||
| 157 | public function getRoutingKeyFromHeader()  | 
                                |
| 158 |     { | 
                                |
| 159 | $headers = $this->getHeaders();  | 
                                |
| 160 | ||
| 161 |         if(! array_key_exists('routing_key', $headers)) | 
                                |
| 162 |         { | 
                                |
| 163 | return null;  | 
                                |
| 164 | }  | 
                                |
| 165 | ||
| 166 | return $headers['routing_key'];  | 
                                |
| 167 | }  | 
                                |
| 168 | }  | 
                                |
| 169 | ||