public function withOutput(array $output) { $copy = clone $this; $copy->output = $output; return $copy; }