<?php

namespace KupShop\PohodaBundle\Command;

use KupShop\PohodaBundle\Utils\Importers\ProductsImporter;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputOption;

class ProductsImportCommand extends Command
{
    use CommandBase {
        configure as CommandBaseConfigure;
    }
    protected static $defaultName = 'shop:pohoda-products-sync';

    protected function configure()
    {
        $this->CommandBaseConfigure();

        $this->addOption('storeId', 's', InputOption::VALUE_OPTIONAL, 'Specify store by root name', false);
    }

    /**
     * @required
     */
    public function setProductsImporter(ProductsImporter $productsImporter)
    {
        $this->actionClass = $productsImporter;
    }
}
