| Total Complexity | 5 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class KeepAliveRetryTransportWrapper extends AbstractTransport |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @const string |
||
| 11 | */ |
||
| 12 | const NO_RESPONSE = "Graylog-Server didn't answer properly, expected 'HTTP/1.x 202 Accepted', response is ''"; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var HttpTransport |
||
| 16 | */ |
||
| 17 | protected $transport; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * KeepAliveRetryTransportWrapper constructor. |
||
| 21 | * |
||
| 22 | * @param HttpTransport $transport |
||
| 23 | */ |
||
| 24 | public function __construct(HttpTransport $transport) |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return HttpTransport |
||
| 31 | */ |
||
| 32 | public function getTransport() |
||
| 33 | { |
||
| 34 | return $this->transport; |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Sends a Message over this transport. |
||
| 39 | * |
||
| 40 | * @param Message $message |
||
| 41 | * |
||
| 42 | * @return int calls function to send message |
||
| 43 | */ |
||
| 44 | public function send(Message $message) |
||
| 53 | } |
||
| 54 | } |
||
| 56 |