1 | <?php |
||
33 | class GearmanWorkerExecuteCommand extends AbstractGearmanCommand |
||
34 | { |
||
35 | /** |
||
36 | * @var GearmanClient |
||
37 | * |
||
38 | * Gearman client |
||
39 | */ |
||
40 | protected $gearmanClient; |
||
41 | |||
42 | /** |
||
43 | * @var GearmanDescriber |
||
44 | * |
||
45 | * GearmanDescriber |
||
46 | */ |
||
47 | protected $gearmanDescriber; |
||
48 | |||
49 | /** |
||
50 | * @var GearmanExecute |
||
51 | * |
||
52 | * Gearman execute |
||
53 | */ |
||
54 | protected $gearmanExecute; |
||
55 | |||
56 | /** |
||
57 | * Set gearman client |
||
58 | * |
||
59 | * @param GearmanClient $gearmanClient Gearman client |
||
60 | * |
||
61 | * @return GearmanWorkerExecuteCommand self Object |
||
62 | */ |
||
63 | 8 | public function setGearmanClient(GearmanClient $gearmanClient) |
|
69 | |||
70 | /** |
||
71 | * set Gearman describer |
||
72 | * |
||
73 | * @param GearmanDescriber $gearmanDescriber GearmanDescriber |
||
74 | * |
||
75 | * @return GearmanWorkerExecuteCommand self Object |
||
76 | */ |
||
77 | 8 | public function setGearmanDescriber(GearmanDescriber $gearmanDescriber) |
|
83 | |||
84 | /** |
||
85 | * set Gearman execute |
||
86 | * |
||
87 | * @param GearmanExecute $gearmanExecute GearmanExecute |
||
88 | * |
||
89 | * @return GearmanWorkerExecuteCommand self Object |
||
90 | */ |
||
91 | 8 | public function setGearmanExecute(GearmanExecute $gearmanExecute) |
|
97 | |||
98 | /** |
||
99 | * Console Command configuration |
||
100 | */ |
||
101 | 8 | protected function configure() |
|
138 | |||
139 | /** |
||
140 | * Executes the current command. |
||
141 | * |
||
142 | * @param InputInterface $input An InputInterface instance |
||
143 | * @param OutputInterface $output An OutputInterface instance |
||
144 | * |
||
145 | * @return integer 0 if everything went fine, or an error code |
||
146 | * |
||
147 | * @throws \LogicException When this abstract class is not implemented |
||
148 | */ |
||
149 | 8 | protected function execute(InputInterface $input, OutputInterface $output) |
|
213 | } |
||
214 |