clrghouz/app/Classes/FTN/Process.php
Deon George 396614afcc
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 38s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m43s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s
Fix processing echomail and when mail crc is calculated as it was decompressing the CompressedString
2024-05-21 22:46:53 +10:00

24 lines
508 B
PHP

<?php
namespace App\Classes\FTN;
use App\Models\{Echoarea,Echomail,Netmail};
/**
* Abstract class to hold the common functions for automatic responding to echomail/netmail messages
*/
abstract class Process
{
public static function canProcess(Echoarea $eao): bool
{
return $eao->automsgs ? TRUE : FALSE;
}
/**
* Return TRUE if the process class handled the message.
*
* @param Echomail|Netmail $mo
* @return bool
*/
abstract public static function handle(Echomail|Netmail $mo): bool;
}