$api
$api : \duncan3dc\GitHub\ApiInterface
$api : \duncan3dc\GitHub\ApiInterface
fromTreeItem(\stdClass $item, \duncan3dc\GitHub\ApiInterface $api) : \duncan3dc\GitHub\FileInterface
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 tree's data from the GitHub Api |
\duncan3dc\GitHub\ApiInterface | $api | The Api instance to communicate with GitHub |