Phan\Language\FileRef::withFile PHP Method

withFile() public method

public withFile ( string $file ) : static
$file string The path to the file in which this element is defined
return static This context with the given value is returned
    public function withFile(string $file)
    {
        $context = clone $this;
        $context->file = $file;
        return $context;
    }