Clone Nabih Pure PHP Architecture

This commit is contained in:
Hamza-Ayed
2026-08-26 17:10:57 +03:00
parent 1e21847ed0
commit df5d8dfc60
28 changed files with 2791 additions and 267 deletions
+20
View File
@@ -0,0 +1,20 @@
<?php
namespace App\Core\Flows;
/**
* BaseFlow
* Abstract base class for all conversation flow states.
*/
abstract class BaseFlow
{
/**
* Process a step in the conversation flow.
*
* @param string $step The current step identifier ('start' for new flows)
* @param array $messageData The incoming WhatsApp message payload (body, phone, etc.)
* @param array $context Reference to the persistent JSON context array
* @return FlowResult
*/
abstract public function handleStep(string $step, array $messageData, array &$context): FlowResult;
}