Files
temporalio-test/app/Temporal/OrderFulfillment/OrderFulfillmentWorkflowInterface.php
2026-05-09 01:18:51 +02:00

22 lines
522 B
PHP

<?php
namespace App\Temporal\OrderFulfillment;
use Temporal\Workflow\WorkflowInterface;
use Temporal\Workflow\WorkflowMethod;
use Temporal\Workflow\SignalMethod;
use Temporal\Workflow\QueryMethod;
#[WorkflowInterface]
interface OrderFulfillmentWorkflowInterface
{
#[WorkflowMethod]
public function processOrder(int $orderId, array $simulationConfig = []);
#[SignalMethod]
public function confirmShipping(string $trackingNumber): void;
#[QueryMethod]
public function getOrderStatus(): array;
}