sleepTime = $sleepTime; $this->output = $output; } /** * @inheritDoc */ public function primaryHandler(Task $task): bool { sleep($this->sleepTime); return true; } /** * @inheritDoc */ public function getOutput() { return $this->output; } /** * @inheritDoc */ public function postHandler(Task $task) { sleep($this->sleepTime); return true; } /** * @inheritDoc */ public function getPostOutput() { return $this->output; } }