ReaderInterface
Interface
Defines the contract for reading .gitattributes files from persistent storage.
Description
Implementations MUST load the raw textual content from the provided path and SHALL return an empty string when the target file does not exist.
Methods
read()
: string
Reads the .gitattributes content from the specified filesystem path.
Methods
Reads the .gitattributes content from the specified filesystem path.
public
read(
string
$gitattributesPath) : string
Parameters
$gitattributesPath
:
string
Description
The filesystem path to the .gitattributes file.
Return values
string
Description
The raw .gitattributes content, or an empty string when absent.