sleepTime = $sleepTime; $this->output = $output; } /** * @inheritDoc */ public function init(Task $task) { } /** * @inheritDoc */ public function primaryHandler(Task $task): bool { sleep($this->sleepTime); return true; } /** * @inheritDoc */ public function getOutput(): string { return $this->output; } /** * @inheritDoc */ public function postHandler(Task $task) { sleep($this->sleepTime); return true; } /** * @inheritDoc */ public function getPostOutput(): string { return $this->output; } /** * @inheritDoc */ public function getParentHandler(): ?Handler { return null; } /** * @inheritDoc */ public function setParentInput(string $input): void { } /** * @inheritDoc */ public function setParentHandler(Handler $parentHandler): void { } }