summaryrefslogtreecommitdiff
path: root/tests/temporal/Workflow/AggregatedWorkflow.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/temporal/Workflow/AggregatedWorkflow.php')
-rw-r--r--tests/temporal/Workflow/AggregatedWorkflow.php30
1 files changed, 0 insertions, 30 deletions
diff --git a/tests/temporal/Workflow/AggregatedWorkflow.php b/tests/temporal/Workflow/AggregatedWorkflow.php
deleted file mode 100644
index 3299179e..00000000
--- a/tests/temporal/Workflow/AggregatedWorkflow.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-namespace Temporal\Tests\Workflow;
-
-use Temporal\Workflow;
-use Temporal\Workflow\SignalMethod;
-use Temporal\Workflow\WorkflowInterface;
-use Temporal\Workflow\WorkflowMethod;
-
-#[WorkflowInterface]
-class AggregatedWorkflow
-{
- private array $values = [];
-
- #[SignalMethod]
- public function addValue(
- string $value
- ) {
- $this->values[] = $value;
- }
-
- #[WorkflowMethod(name: 'AggregatedWorkflow')]
- public function run(
- int $count
- ) {
- yield Workflow::await(fn() => count($this->values) === $count);
-
- return $this->values;
- }
-}