diff --git a/src/V2/Authentication/AuthenticatedEndpoint.php b/src/V2/Authentication/AuthenticatedEndpoint.php index 1ffdbd4..7c19e42 100644 --- a/src/V2/Authentication/AuthenticatedEndpoint.php +++ b/src/V2/Authentication/AuthenticatedEndpoint.php @@ -5,7 +5,7 @@ trait AuthenticatedEndpoint { protected $apiKey; - public function apiKey() { + public function getApiKey() { return $this->apiKey; } } diff --git a/src/V2/Authentication/AuthenticationHandler.php b/src/V2/Authentication/AuthenticationHandler.php index 0dd071b..b3f8fdc 100644 --- a/src/V2/Authentication/AuthenticationHandler.php +++ b/src/V2/Authentication/AuthenticationHandler.php @@ -25,7 +25,7 @@ protected function getEndpoint() { * @param RequestInterface $request */ public function onRequest( RequestInterface $request ) { - $request->addHeader( 'Authorization', 'Bearer ' . $this->getEndpoint()->apiKey() ); + $request->addHeader( 'Authorization', 'Bearer ' . $this->getEndpoint()->getApiKey() ); } /** diff --git a/src/V2/Authentication/IAuthenticatedEndpoint.php b/src/V2/Authentication/IAuthenticatedEndpoint.php index 45f6361..df7362a 100644 --- a/src/V2/Authentication/IAuthenticatedEndpoint.php +++ b/src/V2/Authentication/IAuthenticatedEndpoint.php @@ -5,5 +5,5 @@ use GW2Treasures\GW2Api\V2\IEndpoint; interface IAuthenticatedEndpoint extends IEndpoint { - public function apiKey(); + public function getApiKey(); }