1 | <?php |
||
38 | class Pause extends Command |
||
39 | { |
||
40 | |||
41 | /** |
||
42 | * Constant for the "resume" option |
||
43 | * |
||
44 | * @var string OPTION_RESUME |
||
45 | */ |
||
46 | const OPTION_RESUME = 'resume'; |
||
47 | |||
48 | /** |
||
49 | * Configures the "pause" command |
||
50 | * |
||
51 | * @return void |
||
52 | * |
||
53 | * {@inheritDoc} |
||
54 | * @see \Symfony\Component\Console\Command\Command::configure() |
||
55 | */ |
||
56 | protected function configure() |
||
73 | |||
74 | /** |
||
75 | * Execute the command |
||
76 | * |
||
77 | * @param \Symfony\Component\Console\Input\InputInterface $input The command input |
||
78 | * @param \Symfony\Component\Console\Output\OutputInterface $output The command output |
||
79 | * |
||
80 | * @return void |
||
81 | * |
||
82 | * {@inheritDoc} |
||
83 | * @see \Symfony\Component\Console\Command\Command::execute() |
||
84 | */ |
||
85 | protected function execute(InputInterface $input, OutputInterface $output) |
||
117 | |||
118 | /** |
||
119 | * Execute the command |
||
120 | * |
||
121 | * @param \Symfony\Component\Console\Input\InputInterface $input The command input |
||
|
|||
122 | * @param \Symfony\Component\Console\Output\OutputInterface $output The command output |
||
123 | * |
||
124 | * @return void |
||
125 | * |
||
126 | * {@inheritDoc} |
||
127 | * @see \Symfony\Component\Console\Command\Command::execute() |
||
128 | */ |
||
129 | protected function assertConsistentResume () { |
||
136 | |||
137 | /** |
||
138 | * Execute the command |
||
139 | * |
||
140 | * @param \Symfony\Component\Console\Input\InputInterface $input The command input |
||
141 | * @param \Symfony\Component\Console\Output\OutputInterface $output The command output |
||
142 | * |
||
143 | * @return void |
||
144 | * |
||
145 | * {@inheritDoc} |
||
146 | * @see \Symfony\Component\Console\Command\Command::execute() |
||
147 | */ |
||
148 | protected function assertConsistentPause () { |
||
155 | } |
||
156 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.