<?php

declare(strict_types=1);

namespace App\Contracts;

use Illuminate\Support\Facades\Log;

abstract class CronCommand extends Command
{
    /**
     * @return mixed
     */
    abstract public function callEvent();

    /**
     * Adjust the logging depending on where we're running from
     */
    public function __construct()
    {
        parent::__construct();
        Log::setDefaultDriver('cron');
    }
}
