$api
$api : \duncan3dc\GitHub\ApiInterface
$api : \duncan3dc\GitHub\ApiInterface
$tree : \duncan3dc\GitHub\TreeInterface|null
fromTreeItem(\stdClass $item, \duncan3dc\GitHub\ApiInterface $api) : \duncan3dc\GitHub\DirectoryInterface
Create a new instance.
\stdClass | $item | The tree item data from the GitHub Api |
\duncan3dc\GitHub\ApiInterface | $api | The Api instance to communicate with GitHub |
__construct(\stdClass $data, \duncan3dc\GitHub\ApiInterface $api)
Create a new instance.
\stdClass | $data | The directory's data from the GitHub Api |
\duncan3dc\GitHub\ApiInterface | $api | The Api instance to communicate with GitHub |
getTree() : \duncan3dc\GitHub\TreeInterface
Get the tree instance for this directory.