1 | <?php |
||
24 | class GearmanWorkerListCommand extends AbstractGearmanCommand |
||
25 | { |
||
26 | /** |
||
27 | * @var GearmanClient |
||
28 | * |
||
29 | * Gearman client |
||
30 | */ |
||
31 | protected $gearmanClient; |
||
32 | |||
33 | /** |
||
34 | * Set gearman client |
||
35 | * |
||
36 | * @param GearmanClient $gearmanClient Gearman client |
||
37 | * |
||
38 | * @return GearmanWorkerListCommand self Object |
||
39 | */ |
||
40 | 2 | public function setGearmanClient(GearmanClient $gearmanClient) |
|
46 | |||
47 | /** |
||
48 | * Console Command configuration |
||
49 | */ |
||
50 | 2 | protected function configure() |
|
58 | |||
59 | /** |
||
60 | * Executes the current command. |
||
61 | * |
||
62 | * @param InputInterface $input An InputInterface instance |
||
63 | * @param OutputInterface $output An OutputInterface instance |
||
64 | * |
||
65 | * @return integer 0 if everything went fine, or an error code |
||
|
|||
66 | * |
||
67 | * @throws \LogicException When this abstract class is not implemented |
||
68 | */ |
||
69 | 2 | protected function execute(InputInterface $input, OutputInterface $output) |
|
99 | } |
||
100 |
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.