Skip to content

GitIgnoreInterface

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

Defines the contract for a .gitignore file with its path and entries.

This interface MUST be implemented by any class that represents a .gitignore file. It SHALL allow iteration over entries and provide access to the file path.


  • Full name: \FastForward\DevTools\GitIgnore\GitIgnoreInterface
  • Parent interfaces: IteratorAggregate

Methods

path

Returns the file system path to the .gitignore file.

public path(): string

Return Value:

the absolute path to the .gitignore file


entries

Returns the list of entries from the .gitignore file.

public entries(): list<string>

Return Value:

the non-empty .gitignore entries


Clone this wiki locally