Since: 8.0

class FileReference (View source)

Marks a string parameter as a file or directory path.

The IDE injects file references into the passed string literals, enabling navigation, completion, and rename/move support. Path completion is provided only for relative paths.

Methods

__construct(string $basePath = '')

No description

Details

__construct(string $basePath = '')

No description

Parameters

string $basePath

Optional base path. May be relative (resolved against project content roots) or absolute. When empty (default), references resolve against the project content roots.