1 | <?php |
||
8 | class MessageAdapter implements ReadableMessage |
||
9 | { |
||
10 | private |
||
11 | $message, |
||
1 ignored issue
–
show
|
|||
12 | $body; |
||
13 | |||
14 | 22 | public function __construct(\Swarrot\Broker\Message $message) |
|
19 | |||
20 | 8 | public function getRoutingKey() |
|
24 | |||
25 | 22 | public function getContentType() |
|
29 | |||
30 | 1 | public function getAppId() |
|
34 | |||
35 | 16 | public function getHeaders() |
|
39 | |||
40 | 4 | public function getBody() |
|
44 | |||
45 | 2 | public function getDecodedBody() |
|
49 | |||
50 | 22 | public function getRawBody() |
|
54 | |||
55 | 1 | public function getFlags() |
|
59 | |||
60 | 22 | public function getAttribute($attributeName) |
|
70 | |||
71 | 3 | public function __toString() |
|
79 | |||
80 | 14 | private function getHeader($headerName) |
|
90 | |||
91 | 3 | public function getAttributes() |
|
95 | |||
96 | 11 | public function isLastRetry($retryOccurence = \Puzzle\AMQP\Consumers\Retry::DEFAULT_RETRY_OCCURENCE) |
|
102 | |||
103 | 3 | public function getRoutingKeyFromHeader() |
|
107 | } |
||
108 |
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.