Phan\Language\FileRef::withFile PHP Метод

withFile() публичный Метод

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