<?php

namespace App\Console\Commands\SearchProfiles;

use App\Facades\SearchProfileService;
use Illuminate\Console\Command;

class ProcessEmailUpdates extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'search-profiles:process-email-updates';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Process email updates for search profiles';

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

    /**
     * Execute the console command.
     *
     * @return mixed
     */
    public function handle()
    {
        SearchProfileService::processUpdateEmails();
        return 0;
    }
}
