counter += $value; } #[WorkflowMethod(name: 'SimpleSignalledWorkflowWithSleep')] public function handler(): iterable { // collect signals during one second yield Workflow::timer(1); if (!Workflow::isReplaying()) { sleep(1); } return $this->counter; } }