protected function _createOrder()
{
$customer = $this->getCustomer();
$this->_output->writeln(sprintf("<info>Using customer: %s (%s)</info>", $customer->getName(), $customer->getData('email')));
$product = $this->getProduct();
$this->_output->writeln(sprintf("<info>Using product: %s (%s)</info>", $product->getName(), $product->getId()));
$createdAt = $this->getCreatedAt();
$this->_output->writeln(sprintf("<info>Using created_at date: %s</info>", $createdAt));
$order = $this->createOrderFromQuote();
if ($order) {
$this->_output->writeln(sprintf("<info>Created order: %s</info>", $order->getIncrementId()));
$this->sendOrderEmail($order);
}
}