| 1 | <?php |
||
| 8 | class MessageAdapter implements ReadableMessage |
||
| 9 | { |
||
| 10 | private |
||
| 11 | $message, |
||
|
1 ignored issue
–
show
|
|||
| 12 | $body; |
||
| 13 | |||
| 14 | 21 | public function __construct(\Swarrot\Broker\Message $message) |
|
| 23 | |||
| 24 | 8 | public function getRoutingKey() |
|
| 28 | |||
| 29 | 21 | public function getContentType() |
|
| 33 | |||
| 34 | 1 | public function getAppId() |
|
| 38 | |||
| 39 | 16 | public function getHeaders() |
|
| 43 | |||
| 44 | 4 | public function getBody() |
|
| 48 | |||
| 49 | 2 | public function getBodyInOriginalFormat() |
|
| 53 | |||
| 54 | 21 | public function getAttribute($attributeName) |
|
| 64 | |||
| 65 | 3 | public function __toString() |
|
| 73 | |||
| 74 | 14 | private function getHeader($headerName) |
|
| 84 | |||
| 85 | 3 | public function getAttributes() |
|
| 89 | |||
| 90 | 11 | public function isLastRetry($retryOccurence = \Puzzle\AMQP\Consumers\Retry::DEFAULT_RETRY_OCCURENCE) |
|
| 96 | |||
| 97 | 3 | public function getRoutingKeyFromHeader() |
|
| 101 | } |
||
| 102 |
The PSR-2 coding standard requires that all properties in a class have their visibility explicitly declared. If you declare a property using
the property is implicitly global.
To learn more about the PSR-2, please see the PHP-FIG site on the PSR-2.