Implementation of areafix processing, first subscribe/unsubscribe with scan

This commit is contained in:
2024-10-31 22:40:58 +11:00
parent d792bf8fe3
commit 4796dd9a6e
11 changed files with 1133 additions and 745 deletions

View File

@@ -0,0 +1,26 @@
<?php
namespace App\Classes\FTN\Process\Netmail\Robot\Areafix;
use Illuminate\Support\Facades\Log;
use App\Models\Address;
// Our base areafix commands class
abstract class Base
{
private const LOGKEY = 'AB-';
protected Address $ao;
protected array $arguments;
public function __construct(Address $ao,array $arguments) {
Log::debug(sprintf('%s:- Areafix [%s] command with arguments [%s] for [%s]',self::LOGKEY,get_class($this),implode('|',$arguments),$ao->ftn));
$this->ao = $ao;
$this->arguments = $arguments;
}
abstract public function help(): array;
abstract public function process(): string;
}