Renamed DataStore to DataStoreInterface

Also, the Interface now contains comments on the expected return values.
This commit is contained in:
Jacob Kiers
2013-02-08 10:37:21 +00:00
parent 204ec8b42f
commit c471cd2b8d
2 changed files with 14 additions and 4 deletions

View File

@@ -45,16 +45,16 @@ class Server
/**
* Data store object reference.
*
* @var JacobKiers\OAuth\DataStore
* @var JacobKiers\OAuth\DataStoreInterface
*/
protected $data_store;
/**
* Construct OAuth server instance.
*
* @param JacobKiers\OAuth\DataStore $data_store
* @param JacobKiers\OAuth\DataStoreInterface $data_store
*/
public function __construct(DataStore $data_store)
public function __construct(DataStoreInterface $data_store)
{
$this->data_store = $data_store;
}