<?php

namespace Mtc\Plugins\Clinic\Src\Console\Commands;

use Illuminate\Console\Command;
use Mtc\Plugins\Clinic\Src\Models\Review;

class SendReviewInvitationsCommand extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'clinic:reviews-invite';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Send review invitations to the patients';

    /**
     * Execute the console command.
     *
     * @return int
     */
    public function handle(): int
    {
        Review::sendInvitations();

        return 0;
    }
}
