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; } }