Skip to content

Commit

Permalink
change IAuthenticatedEndpoint::apiKey() to IAuthenticatedEndpoint::ge…
Browse files Browse the repository at this point in the history
…tApiKey()
  • Loading branch information
darthmaim committed May 23, 2015
1 parent 7320d83 commit a5ad2c7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/V2/Authentication/AuthenticatedEndpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
trait AuthenticatedEndpoint {
protected $apiKey;

public function apiKey() {
public function getApiKey() {
return $this->apiKey;
}
}
2 changes: 1 addition & 1 deletion src/V2/Authentication/AuthenticationHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() );
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/V2/Authentication/IAuthenticatedEndpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
use GW2Treasures\GW2Api\V2\IEndpoint;

interface IAuthenticatedEndpoint extends IEndpoint {
public function apiKey();
public function getApiKey();
}

0 comments on commit a5ad2c7

Please sign in to comment.