| 1 | <?php |
||
| 10 | class WorkerContext |
||
| 11 | { |
||
| 12 | use LoggerAwareTrait; |
||
| 13 | |||
| 14 | public |
||
| 15 | $queue, |
||
|
1 ignored issue
–
show
|
|||
| 16 | $description; |
||
| 17 | |||
| 18 | private |
||
| 19 | $consumer, |
||
|
1 ignored issue
–
show
|
|||
| 20 | $worker; |
||
| 21 | |||
| 22 | 4 | public function __construct(\Closure $worker, Consumer $consumer, $queue) |
|
| 29 | |||
| 30 | 1 | public function getWorker() |
|
| 41 | |||
| 42 | public function setLogger(LoggerInterface $logger) |
||
| 49 | |||
| 50 | 1 | public function getLogger() |
|
| 54 | |||
| 55 | public function getConsumer() |
||
| 59 | |||
| 60 | 1 | public function setDescription($description) |
|
| 66 | |||
| 67 | 2 | public function getDescription() |
|
| 71 | |||
| 72 | 3 | public function getQueue() |
|
| 76 | } |
||
| 77 |
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.