1 | <?php |
||
10 | class WorkerContext |
||
11 | { |
||
12 | use LoggerAwareTrait; |
||
13 | |||
14 | private |
||
15 | $queue, |
||
16 | $description, |
||
17 | $consumer, |
||
18 | $worker; |
||
19 | |||
20 | 4 | public function __construct(\Closure $worker, Consumer $consumer, $queue) |
|
28 | |||
29 | 1 | public function getWorker() |
|
40 | |||
41 | public function setLogger(LoggerInterface $logger) |
||
48 | |||
49 | 1 | public function getLogger() |
|
53 | |||
54 | public function getConsumer() |
||
58 | |||
59 | 1 | public function setDescription($description) |
|
65 | |||
66 | 2 | public function getDescription() |
|
70 | |||
71 | 3 | public function getQueue() |
|
75 | } |
||
76 |