public function apiCommits() { $api = new API\Repositories\Commits(); $api->setClient($this->httpClient); return $api; }