Updated repository method names to be more explicit

This commit is contained in:
Alex Bilbie
2015-11-13 17:39:07 +00:00
parent 03e4ac7ea6
commit da8efa20cd
7 changed files with 40 additions and 35 deletions

View File

@@ -1,15 +1,16 @@
<?php
namespace League\OAuth2\Server\Repositories;
use League\OAuth2\Server\Entities\Interfaces\UserEntityInterface;
namespace League\OAuth2\Server\Repositories;
interface UserRepositoryInterface extends RepositoryInterface
{
/**
* Get a user
* Get a user entity
*
* @param string $username
* @param string $password
* @return UserEntityInterface
*
* @return \League\OAuth2\Server\Entities\Interfaces\UserEntityInterface
*/
public function getByCredentials($username, $password);
public function getUserEntityByUserCredentials($username, $password);
}