1 | <?php |
||
33 | class GearmanJobExecuteCommand 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 | * @var QuestionHelper |
||
58 | * |
||
59 | * Question |
||
60 | */ |
||
61 | protected $question; |
||
62 | |||
63 | /** |
||
64 | * Set gearman client |
||
65 | * |
||
66 | * @param GearmanClient $gearmanClient Gearman client |
||
67 | * |
||
68 | * @return GearmanJobExecuteCommand self Object |
||
69 | */ |
||
70 | 8 | public function setGearmanClient(GearmanClient $gearmanClient) |
|
76 | |||
77 | /** |
||
78 | * set Gearman describer |
||
79 | * |
||
80 | * @param GearmanDescriber $gearmanDescriber GearmanDescriber |
||
81 | * |
||
82 | * @return GearmanJobExecuteCommand self Object |
||
83 | */ |
||
84 | 8 | public function setGearmanDescriber(GearmanDescriber $gearmanDescriber) |
|
90 | |||
91 | /** |
||
92 | * set Gearman execute |
||
93 | * |
||
94 | * @param GearmanExecute $gearmanExecute GearmanExecute |
||
95 | * |
||
96 | * @return GearmanJobExecuteCommand self Object |
||
97 | */ |
||
98 | 8 | public function setGearmanExecute(GearmanExecute $gearmanExecute) |
|
104 | |||
105 | /** |
||
106 | * Console Command configuration |
||
107 | */ |
||
108 | 8 | protected function configure() |
|
143 | |||
144 | /** |
||
145 | * Executes the current command. |
||
146 | * |
||
147 | * @param InputInterface $input An InputInterface instance |
||
148 | * @param OutputInterface $output An OutputInterface instance |
||
149 | * |
||
150 | * @return integer 0 if everything went fine, or an error code |
||
151 | * |
||
152 | * @throws \LogicException When this abstract class is not implemented |
||
153 | */ |
||
154 | 8 | protected function execute(InputInterface $input, OutputInterface $output) |
|
216 | } |
||
217 |
This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress.
In this case you can add the
@ignore
PhpDoc annotation to the duplicate definition and it will be ignored.