2024-10-31 11:40:58 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Classes\FTN\Process\Netmail\Robot\Areafix;
|
|
|
|
|
|
|
|
use Illuminate\Support\Facades\Log;
|
|
|
|
|
2024-10-31 12:53:43 +00:00
|
|
|
use App\Models\Netmail;
|
2024-10-31 11:40:58 +00:00
|
|
|
|
|
|
|
// Our base areafix commands class
|
|
|
|
abstract class Base
|
|
|
|
{
|
|
|
|
private const LOGKEY = 'AB-';
|
|
|
|
|
2024-10-31 12:53:43 +00:00
|
|
|
protected Netmail $mo;
|
2024-10-31 11:40:58 +00:00
|
|
|
protected array $arguments;
|
|
|
|
|
2024-10-31 12:53:43 +00:00
|
|
|
public function __construct(Netmail $mo,array $arguments) {
|
|
|
|
Log::debug(sprintf('%s:- Areafix [%s] command with arguments [%s] for [%s]',self::LOGKEY,get_class($this),implode('|',$arguments),$mo->fftn->ftn));
|
2024-10-31 11:40:58 +00:00
|
|
|
|
2024-10-31 12:53:43 +00:00
|
|
|
$this->mo = $mo;
|
2024-10-31 11:40:58 +00:00
|
|
|
$this->arguments = $arguments;
|
|
|
|
}
|
|
|
|
|
2024-10-31 12:53:43 +00:00
|
|
|
abstract public static function help(): array;
|
2024-10-31 11:40:58 +00:00
|
|
|
abstract public function process(): string;
|
|
|
|
}
|