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