clrghouz/app/Classes/FTN/Process/Netmail/Robot/Areafix/Base.php

26 lines
632 B
PHP
Raw Normal View History

<?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;
// Our base areafix commands class
abstract class Base
{
private const LOGKEY = 'AB-';
2024-10-31 12:53:43 +00:00
protected Netmail $mo;
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 12:53:43 +00:00
$this->mo = $mo;
$this->arguments = $arguments;
}
2024-10-31 12:53:43 +00:00
abstract public static function help(): array;
abstract public function process(): string;
}