", $user->name, $user->email)); } #[ActivityMethod] public function slow( string $input ): string { sleep(2); return strtolower($input); } #[ActivityMethod] public function sha512( Bytes $input ): string { return hash("sha512", ($input->getData())); } public function updateRunID(WorkflowExecution $e): WorkflowExecution { $e->setRunId('updated'); return $e; } #[ActivityMethod] public function fail() { throw new \Error("failed activity"); } }