summaryrefslogtreecommitdiff
path: root/tests/temporal/Workflow/QueryWorkflow.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/temporal/Workflow/QueryWorkflow.php')
-rw-r--r--tests/temporal/Workflow/QueryWorkflow.php41
1 files changed, 0 insertions, 41 deletions
diff --git a/tests/temporal/Workflow/QueryWorkflow.php b/tests/temporal/Workflow/QueryWorkflow.php
deleted file mode 100644
index 96e41582..00000000
--- a/tests/temporal/Workflow/QueryWorkflow.php
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php
-
-/**
- * This file is part of Temporal package.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Temporal\Tests\Workflow;
-
-use Temporal\Workflow;
-use Temporal\Workflow\WorkflowMethod;
-
-#[Workflow\WorkflowInterface]
-class QueryWorkflow
-{
- private int $counter = 0;
-
- #[Workflow\SignalMethod(name: "add")]
- public function add(
- int $value
- ) {
- $this->counter += $value;
- }
-
- #[Workflow\QueryMethod(name: "get")]
- public function get(): int
- {
- return $this->counter;
- }
-
- #[WorkflowMethod]
- public function handler()
- {
- // collect signals during one second
- yield Workflow::timer(1);
-
- return $this->counter;
- }
-}