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.

Table of Contents

Methods

read()

Reads the .gitattributes content from the specified filesystem path.

 : string
Methods

read()

Public

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.