Skip to content

Commit

Permalink
Use interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
bakura10 committed Jul 31, 2015
1 parent 1dcaa30 commit c28693d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Server/Grant/AuthorizationServerAwareInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

namespace ZfrOAuth2\Server\Grant;

use ZfrOAuth2\Server\AuthorizationServer;
use ZfrOAuth2\Server\AuthorizationServerInterface;

/**
* Interface for grant that need to have access to the authorization server
Expand All @@ -31,8 +31,8 @@ interface AuthorizationServerAwareInterface
/**
* Set the authorization server
*
* @param AuthorizationServer $authorizationServer
* @param AuthorizationServerInterface $authorizationServer
* @return void
*/
public function setAuthorizationServer(AuthorizationServer $authorizationServer);
public function setAuthorizationServer(AuthorizationServerInterface $authorizationServer);
}
6 changes: 3 additions & 3 deletions src/Server/Grant/AuthorizationServerAwareTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

namespace ZfrOAuth2\Server\Grant;

use ZfrOAuth2\Server\AuthorizationServer;
use ZfrOAuth2\Server\AuthorizationServerInterface;

/**
* @author Michaël Gallego <[email protected]>
Expand All @@ -27,14 +27,14 @@
trait AuthorizationServerAwareTrait
{
/**
* @var AuthorizationServer
* @var AuthorizationServerInterface
*/
protected $authorizationServer;

/**
* {@inheritDoc}
*/
public function setAuthorizationServer(AuthorizationServer $authorizationServer)
public function setAuthorizationServer(AuthorizationServerInterface $authorizationServer)
{
$this->authorizationServer = $authorizationServer;
}
Expand Down

0 comments on commit c28693d

Please sign in to comment.