$api
$api : \duncan3dc\GitHub\ApiInterface
$api : \duncan3dc\GitHub\ApiInterface
fromApiResponse(\stdClass $data, \duncan3dc\GitHub\ApiInterface $api) : \duncan3dc\GitHub\TreeInterface
Create a new instance.
\stdClass | $data | The tree's data from the GitHub Api |
\duncan3dc\GitHub\ApiInterface | $api | The Api instance to communicate with GitHub |
getDirectories() : \duncan3dc\GitHub\iterable|array<mixed,\duncan3dc\GitHub\DirectoryInterface>
Get the subdirectories in this directory.
getDirectory(\duncan3dc\GitHub\string $name) : \duncan3dc\GitHub\DirectoryInterface
Get a directory by its name.
\duncan3dc\GitHub\string | $name | The name of the directory |
getFiles() : \duncan3dc\GitHub\iterable|array<mixed,\duncan3dc\GitHub\FileInterface>
inheritDoc
getFile(\duncan3dc\GitHub\string $name) : \duncan3dc\GitHub\FileInterface
Get a file by its name.
\duncan3dc\GitHub\string | $name | The name of the file |
__construct(\stdClass $data, \duncan3dc\GitHub\ApiInterface $api)
Create a new instance.
\stdClass | $data | The tree's data from the GitHub Api |
\duncan3dc\GitHub\ApiInterface | $api | The Api instance to communicate with GitHub |