1 | <?php |
||
30 | class GearmanJobExecuteCommand 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 | * @var QuestionHelper |
||
55 | * |
||
56 | * Question |
||
57 | */ |
||
58 | protected $question; |
||
59 | |||
60 | /** |
||
61 | * Set gearman client |
||
62 | * |
||
63 | * @param GearmanClient $gearmanClient Gearman client |
||
64 | * |
||
65 | * @return GearmanJobExecuteCommand self Object |
||
66 | */ |
||
67 | 8 | public function setGearmanClient(GearmanClient $gearmanClient) |
|
73 | |||
74 | /** |
||
75 | * set Gearman describer |
||
76 | * |
||
77 | * @param GearmanDescriber $gearmanDescriber GearmanDescriber |
||
78 | * |
||
79 | * @return GearmanJobExecuteCommand self Object |
||
80 | */ |
||
81 | 8 | public function setGearmanDescriber(GearmanDescriber $gearmanDescriber) |
|
87 | |||
88 | /** |
||
89 | * set Gearman execute |
||
90 | * |
||
91 | * @param GearmanExecute $gearmanExecute GearmanExecute |
||
92 | * |
||
93 | * @return GearmanJobExecuteCommand self Object |
||
94 | */ |
||
95 | 8 | public function setGearmanExecute(GearmanExecute $gearmanExecute) |
|
101 | |||
102 | /** |
||
103 | * Console Command configuration |
||
104 | */ |
||
105 | 8 | protected function configure() |
|
140 | |||
141 | /** |
||
142 | * Executes the current command. |
||
143 | * |
||
144 | * @param InputInterface $input An InputInterface instance |
||
145 | * @param OutputInterface $output An OutputInterface instance |
||
146 | * |
||
147 | * @return integer 0 if everything went fine, or an error code |
||
|
|||
148 | * |
||
149 | * @throws \LogicException When this abstract class is not implemented |
||
150 | */ |
||
151 | 8 | protected function execute(InputInterface $input, OutputInterface $output) |
|
212 | } |
||
213 |
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.