1 | <?php |
||
11 | class InMemory implements Client |
||
12 | { |
||
13 | use \Psr\Log\LoggerAwareTrait; |
||
14 | |||
15 | private |
||
16 | $sentMessages; |
||
1 ignored issue
–
show
|
|||
17 | |||
18 | 9 | public function __construct() |
|
23 | |||
24 | 7 | public function publish($exchangeName, WritableMessage $message) |
|
28 | |||
29 | 1 | public function getQueue($queueName) |
|
33 | |||
34 | public function getExchange($exchangeName) |
||
38 | |||
39 | 7 | private function saveMessage($exchangeName, WritableMessage $message) |
|
46 | |||
47 | 7 | public function getSentMessages() |
|
51 | |||
52 | 1 | public function dropSentMessages() |
|
58 | } |
||
59 |
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.