| @@ 51-57 (lines=7) @@ | ||
| 48 | *  | 
                                |
| 49 | * @return  | 
                                |
| 50 | */  | 
                                |
| 51 | protected function doSend(\PEIP\INF\Message\Message $message)  | 
                                |
| 52 |     { | 
                                |
| 53 |         if ($this->capacity < 1 || $this->getMessageCount() <= $this->getCapacity()) { | 
                                |
| 54 | $this->queue->insert($message, $message->getHeader($this->priorityHeader));  | 
                                |
| 55 |         } else { | 
                                |
| 56 |             throw new \Exception('Not implemented yet.'); | 
                                |
| 57 | }  | 
                                |
| 58 | }  | 
                                |
| 59 | }  | 
                                |
| 60 | ||
| @@ 69-75 (lines=7) @@ | ||
| 66 | *  | 
                                |
| 67 | * @return  | 
                                |
| 68 | */  | 
                                |
| 69 | protected function doSend(\PEIP\INF\Message\Message $message)  | 
                                |
| 70 |     { | 
                                |
| 71 |         if ($this->capacity < 1 || $this->getMessageCount() <= $this->getCapacity()) { | 
                                |
| 72 | $this->queue->enqueque($message);  | 
                                |
| 73 |         } else { | 
                                |
| 74 |             throw new \Exception('Not implemented yet.'); | 
                                |
| 75 | }  | 
                                |
| 76 | }  | 
                                |
| 77 | }  | 
                                |
| 78 | ||