\duncan3dc\GitHubDirectoryInterface

Summary

Methods
Constants
getDirectories()
getDirectory()
hasDirectory()
getFiles()
getFile()
hasFile()
getName()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getDirectories()

getDirectories() : \duncan3dc\GitHub\iterable|array<mixed,\duncan3dc\GitHub\DirectoryInterface>

Get the subdirectories in this directory.

Returns

\duncan3dc\GitHub\iterable|array<mixed,\duncan3dc\GitHub\DirectoryInterface>

getDirectory()

getDirectory(string  $name) : \duncan3dc\GitHub\DirectoryInterface

Get a directory by its name.

Parameters

string $name

The name of the directory

Returns

\duncan3dc\GitHub\DirectoryInterface

hasDirectory()

hasDirectory(string  $name) : boolean

Check if a directory exists.

Parameters

string $name

The name of the directory

Returns

boolean

getFiles()

getFiles() : \duncan3dc\GitHub\iterable|array<mixed,\duncan3dc\GitHub\FileInterface>

Get the files in this directory.

Returns

\duncan3dc\GitHub\iterable|array<mixed,\duncan3dc\GitHub\FileInterface>

getFile()

getFile(string  $name) : \duncan3dc\GitHub\FileInterface

Get a file by its name.

Parameters

string $name

The name of the file

Returns

\duncan3dc\GitHub\FileInterface

hasFile()

hasFile(string  $name) : boolean

Check if a file exists.

Parameters

string $name

The name of the file

Returns

boolean

getName()

getName() : string

Get the name of this directory.

Returns

string