1 | <?php |
||
30 | class GearmanWorkerExecuteCommand extends AbstractGearmanCommand |
||
31 | { |
||
32 | /** |
||
33 | * @var GearmanClient |
||
34 | * |
||
35 | * Gearman client |
||
36 | */ |
||
37 | protected $gearmanClient; |
||
38 | |||
39 | /** |
||
40 | * @var GearmanDescriber |
||
41 | * |
||
42 | * GearmanDescriber |
||
43 | */ |
||
44 | protected $gearmanDescriber; |
||
45 | |||
46 | /** |
||
47 | * @var GearmanExecute |
||
48 | * |
||
49 | * Gearman execute |
||
50 | */ |
||
51 | protected $gearmanExecute; |
||
52 | |||
53 | /** |
||
54 | * Set gearman client |
||
55 | * |
||
56 | * @param GearmanClient $gearmanClient Gearman client |
||
57 | * |
||
58 | * @return GearmanWorkerExecuteCommand self Object |
||
59 | */ |
||
60 | 8 | public function setGearmanClient(GearmanClient $gearmanClient) |
|
66 | |||
67 | /** |
||
68 | * set Gearman describer |
||
69 | * |
||
70 | * @param GearmanDescriber $gearmanDescriber GearmanDescriber |
||
71 | * |
||
72 | * @return GearmanWorkerExecuteCommand self Object |
||
73 | */ |
||
74 | 8 | public function setGearmanDescriber(GearmanDescriber $gearmanDescriber) |
|
80 | |||
81 | /** |
||
82 | * set Gearman execute |
||
83 | * |
||
84 | * @param GearmanExecute $gearmanExecute GearmanExecute |
||
85 | * |
||
86 | * @return GearmanWorkerExecuteCommand self Object |
||
87 | */ |
||
88 | 8 | public function setGearmanExecute(GearmanExecute $gearmanExecute) |
|
94 | |||
95 | /** |
||
96 | * Console Command configuration |
||
97 | */ |
||
98 | 8 | protected function configure() |
|
135 | |||
136 | /** |
||
137 | * Executes the current command. |
||
138 | * |
||
139 | * @param InputInterface $input An InputInterface instance |
||
140 | * @param OutputInterface $output An OutputInterface instance |
||
141 | * |
||
142 | * @return integer 0 if everything went fine, or an error code |
||
|
|||
143 | * |
||
144 | * @throws \LogicException When this abstract class is not implemented |
||
145 | */ |
||
146 | 8 | protected function execute(InputInterface $input, OutputInterface $output) |
|
210 | } |
||
211 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.