Skip to content

ReaderInterface

github-actions edited this page Apr 11, 2026 · 1 revision

Defines the contract for reading .gitattributes files from persistent storage.

Implementations MUST load the raw textual content from the provided path and SHALL return an empty string when the target file does not exist.


  • Full name: \FastForward\DevTools\GitAttributes\ReaderInterface

Methods

read

Reads the .gitattributes content from the specified filesystem path.

public read(string $gitattributesPath): string

Parameters:

Parameter Type Description
$gitattributesPath string The filesystem path to the .gitattributes file.

Return Value:

The raw .gitattributes content, or an empty string when absent.


Clone this wiki locally