From f9e56ff62aa658962dbe7835102443aefcab732d Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Sat, 27 Dec 2014 20:46:46 +0000 Subject: [PATCH] Added MAC storage getter and setter --- src/AbstractServer.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/AbstractServer.php b/src/AbstractServer.php index 3cdf14ea..7d4ba202 100644 --- a/src/AbstractServer.php +++ b/src/AbstractServer.php @@ -15,6 +15,7 @@ use League\Event\Emitter; use League\OAuth2\Server\Storage\AccessTokenInterface; use League\OAuth2\Server\Storage\AuthCodeInterface; use League\OAuth2\Server\Storage\ClientInterface; +use League\OAuth2\Server\Storage\MacTokenInterface; use League\OAuth2\Server\Storage\RefreshTokenInterface; use League\OAuth2\Server\Storage\ScopeInterface; use League\OAuth2\Server\Storage\SessionInterface; @@ -75,6 +76,11 @@ abstract class AbstractServer */ protected $clientStorage; + /** + * @var \League\OAuth2\Server\Storage\MacTokenInterface + */ + protected $macStorage; + /** * Token type * @@ -332,4 +338,20 @@ abstract class AbstractServer { return $this->tokenType; } + + /** + * @return MacTokenInterface + */ + public function getMacStorage() + { + return $this->macStorage; + } + + /** + * @param MacTokenInterface $macStorage + */ + public function setMacStorage(MacTokenInterface $macStorage) + { + $this->macStorage = $macStorage; + } }