public function withFile(string $file) { $context = clone $this; $context->file = $file; return $context; }