1 | <?php |
||
29 | * @var GearmanClient |
||
30 | * |
||
31 | * Gearman client |
||
32 | */ |
||
33 | protected $gearmanClient; |
||
34 | |||
35 | /** |
||
36 | * @var GearmanDescriber |
||
37 | * |
||
38 | * GearmanDescriber |
||
39 | */ |
||
40 | protected $gearmanDescriber; |
||
41 | |||
42 | /** |
||
43 | * Set gearman client |
||
44 | * |
||
45 | * @param GearmanClient $gearmanClient Gearman client |
||
46 | * |
||
47 | * @return GearmanJobDescribeCommand self Object |
||
48 | */ |
||
49 | 1 | public function setGearmanClient(GearmanClient $gearmanClient) |
|
55 | |||
56 | /** |
||
57 | * set Gearman describer |
||
58 | * |
||
59 | * @param GearmanDescriber $gearmanDescriber GearmanDescriber |
||
60 | * |
||
61 | * @return GearmanJobDescribeCommand self Object |
||
62 | */ |
||
63 | 1 | public function setGearmanDescriber(GearmanDescriber $gearmanDescriber) |
|
69 | |||
70 | /** |
||
71 | * Console Command configuration |
||
72 | */ |
||
73 | 1 | protected function configure() |
|
84 | |||
85 | /** |
||
86 | * Executes the current command. |
||
87 | * |
||
88 | * @param InputInterface $input An InputInterface instance |
||
89 | * @param OutputInterface $output An OutputInterface instance |
||
90 | * |
||
91 | * @return integer 0 if everything went fine, or an error code |
||
|
|||
92 | * |
||
93 | * @throws \LogicException When this abstract class is not implemented |
||
94 | */ |
||
95 | 1 | protected function execute(InputInterface $input, OutputInterface $output) |
|
104 | } |
||
105 |
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.