N98\Magento\Command\Developer\Module\UpdateCommand::setVersion PHP Method

setVersion() protected method

protected setVersion ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, SimpleXMLElement $configXml )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
$configXml SimpleXMLElement
    protected function setVersion(InputInterface $input, OutputInterface $output, \SimpleXMLElement $configXml)
    {
        if ($this->shouldSetVersion($input)) {
            $modulesNode = $configXml->modules->{$this->getModuleNamespace()};
            $dialog = $this->getDialog();
            $version = trim($dialog->ask($output, '<question>Enter version number:</question>'));
            $modulesNode->version = $version;
        }
    }