/** * @param \Github\Client $client * @param string $apiKey * */ public function __construct(Client $client, $apiKey) { $client->authenticate($apiKey, null, Client::AUTH_HTTP_TOKEN); $this->notificationService = $client->notifications(); }