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