public function increment($increment = 1) { if ($this->bar === null) { return; } $this->bar->advance($increment); if ($this->bar->getProgress() === $this->bar->getMaxSteps()) { $this->consoleIO->getOutput()->writeln(' - Finished!'); } }