WriterInterface
Interface
Defines the contract for writing .gitattributes files to persistent storage.
Description
Implementations MUST write the provided content to the target path, SHOULD normalize attribute-column alignment for deterministic output, and SHALL ensure the resulting file ends with a trailing line feed.
Methods
write()
: void
Writes the .gitattributes content to the specified filesystem path.
Methods
Writes the .gitattributes content to the specified filesystem path.
public
write(
string
$gitattributesPath,
string
$content) : void
Parameters
$gitattributesPath
:
string
Description
The filesystem path to the .gitattributes file.
$content
:
string
Description
The merged .gitattributes content to persist.