1 | <?php |
||
15 | abstract class AbstractConsumer implements Consumer |
||
16 | { |
||
17 | use LoggerAwareTrait; |
||
18 | |||
19 | protected |
||
20 | $messageProvider; |
||
1 ignored issue
–
show
|
|||
21 | |||
22 | private |
||
23 | $client, |
||
1 ignored issue
–
show
|
|||
24 | $processor, |
||
25 | $workerContext; |
||
26 | |||
27 | 4 | public function __construct() |
|
31 | |||
32 | public function consume(ProcessorInterface $processor, Client $client, WorkerContext $workerContext) |
||
39 | |||
40 | private function setMessageProvider() |
||
44 | |||
45 | protected function getBaseStack() |
||
54 | |||
55 | protected function getSwarrotConsumer(Stack\Builder $stack) |
||
64 | } |
||
65 |
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.