<?php

namespace App\Console\Commands;

use App\Shopify\ShopifyService;
use Illuminate\Console\Command;

class SyncShopifyProducts extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'area:sync-shopify-products';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Syncs marked products with shopify';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     *
     * @return int
     */
    public function handle(ShopifyService $service)
    {
        $service->syncProducts();
        return 0;
    }
}
