KJ\Magento\Command\Order\Create\DummyCommand::execute PHP Method

execute() protected method

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer | void
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
return integer | void
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $this->_input = $input;
        $this->_output = $output;
        $this->detectMagento($output, true);
        $this->initMagento();
        for ($i = 1; $i <= $input->getArgument('count'); $i++) {
            echo "{$i}. ";
            try {
                $this->_createOrder();
            } catch (\Exception $e) {
                $this->_output->writeln("<error>Problem creating order: " . $e->getMessage() . "</error>");
            }
            $this->_resetEverything();
        }
    }