config = new EmptyTaskConfig(); $this->processBuilder = $processBuilder; $this->formatter = $formatter; } public function getConfig(): TaskConfigInterface { return $this->config; } public function withConfig(TaskConfigInterface $config): TaskInterface { $new = clone $this; $new->config = $config; return $new; } }