Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
3 / 3 |
AbstractStorage | |
100.00% |
1 / 1 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
3 / 3 |
setServer(AbstractServer $server) | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
getServer() | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
<?php | |
/** | |
* OAuth 2.0 abstract storage | |
* | |
* @package league/oauth2-server | |
* @author Alex Bilbie <hello@alexbilbie.com> | |
* @copyright Copyright (c) Alex Bilbie | |
* @license http://mit-license.org/ | |
* @link https://github.com/thephpleague/oauth2-server | |
*/ | |
namespace League\OAuth2\Server\Storage; | |
use League\OAuth2\Server\AbstractServer; | |
/** | |
* Abstract storage class | |
*/ | |
abstract class AbstractStorage implements StorageInterface | |
{ | |
/** | |
* Server | |
* | |
* @var \League\OAuth2\Server\AbstractServer $server | |
*/ | |
protected $server; | |
/** | |
* Set the server | |
* | |
* @param \League\OAuth2\Server\AbstractServer $server | |
* | |
* @return self | |
*/ | |
public function setServer(AbstractServer $server) | |
{ | |
$this->server = $server; | |
return $this; | |
} | |
/** | |
* Return the server | |
* | |
* @return \League\OAuth2\Server\AbstractServer | |
*/ | |
protected function getServer() | |
{ | |
return $this->server; | |
} | |
} |