mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-09-02 10:44:59 +02:00
28 lines
617 B
PHP
28 lines
617 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use Illuminate\Console\Command;
|
|
use Illuminate\Contracts\Console\Isolatable;
|
|
use Illuminate\Contracts\Validation\Validator;
|
|
use Illuminate\Validation\ValidationException;
|
|
|
|
abstract class BaseCommand extends Command implements Isolatable
|
|
{
|
|
/**
|
|
* Indicates whether only one instance of the command can run at any given time.
|
|
*
|
|
* @var bool
|
|
*/
|
|
protected $isolated = true;
|
|
|
|
/**
|
|
* @throws ValidationException
|
|
*/
|
|
abstract public function handle(): int;
|
|
|
|
abstract protected function validator(): Validator;
|
|
}
|