Skip to content

WriterInterface

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

Defines the contract for writing .gitattributes files to persistent storage.

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.


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

Methods

write

Writes the .gitattributes content to the specified filesystem path.

public write(string $gitattributesPath, string $content): void

Parameters:

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

Clone this wiki locally