public function run() { if (!$this->run) { CommandHelper::runHelp(); return; } $debug = new DebugHelper(); if ($this->debug) { $debug->write(sprintf('Start %s', ucfirst($this->run))); } $command = sprintf('run%s', ucfirst($this->run)); $this->{$command}(); if ($this->debug) { $debug->write(sprintf('End %s', ucfirst($this->run))); } }