summaryrefslogtreecommitdiff
path: root/tests/temporal/Workflow/PeriodicWorkflow.php
blob: 08f5f2fa9149e5835e8fe2bbbf8065ee73325969 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

namespace Temporal\Tests\Workflow;

use Temporal\Workflow;
use Temporal\Workflow\WorkflowMethod;

#[Workflow\WorkflowInterface]
class PeriodicWorkflow
{
    #[WorkflowMethod(name: 'PeriodicWorkflow')]
    public function handler()
    {
        error_log("GOT SOMETHING" . print_r(Workflow::getLastCompletionResult(), true));

        // todo: get last completion result
        return 'OK';
    }
}