Reader

Class
implements ReaderInterface
Final: Yes

Reads raw .gitattributes content from the filesystem.

Description

This reader SHALL return the complete textual contents of a .gitattributes file, and MUST yield an empty string when the file does not exist.

Table of Contents

Interfaces

ReaderInterface

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

Methods

read()

Reads a .gitattributes file from the specified filesystem path.

 : string
Methods

read()

Public

Reads a .gitattributes file 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.