protected function setGlobalNode(InputInterface $input, OutputInterface $output, SimpleXMLElement $configXml)
{
if ($this->shouldAddAll($input)) {
$this->addGlobalNode($configXml, 'blocks', '_Block');
$this->addGlobalNode($configXml, 'helpers', '_Helper');
$this->addGlobalNode($configXml, 'models', '_Model');
$this->addResourceModelNodeIfConfirmed($output, $configXml);
} else {
if ($this->shouldAddBlocks($input)) {
$this->addGlobalNode($configXml, 'blocks', '_Block');
}
if ($this->shouldAddHelpers($input)) {
$this->addGlobalNode($configXml, 'helpers', '_Helper');
}
if ($this->shouldAddModels($input)) {
$this->addGlobalNode($configXml, 'models', '_Model');
$this->addResourceModelNodeIfConfirmed($output, $configXml);
}
}
}