PhpBench\Console\Command\SelfUpdateCommand::doUpdate PHP Метод

doUpdate() приватный Метод

private doUpdate ( Symfony\Component\Console\Output\OutputInterface $output )
$output Symfony\Component\Console\Output\OutputInterface
    private function doUpdate(OutputInterface $output)
    {
        $result = $this->updater->update();
        if (!$result) {
            $output->writeln('No update required, PHPBench is already at the latest version.');
            return 0;
        }
        $output->writeln(sprintf('PHPBench was updated from "%s" to "%s"', $this->updater->getOldVersion(), $this->updater->getNewVersion()));
    }