2014-06-29 22:12:33 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
namespace Firefly\Storage\User;
|
|
|
|
|
2014-07-25 13:02:01 +02:00
|
|
|
/**
|
|
|
|
* Interface UserRepositoryInterface
|
|
|
|
*
|
|
|
|
* @package Firefly\Storage\User
|
|
|
|
*/
|
2014-06-29 22:12:33 +02:00
|
|
|
interface UserRepositoryInterface
|
|
|
|
{
|
2014-07-25 13:02:01 +02:00
|
|
|
/**
|
|
|
|
* @param $array
|
|
|
|
*
|
|
|
|
* @return mixed
|
|
|
|
*/
|
2014-07-02 23:12:31 +02:00
|
|
|
public function register($array);
|
2014-06-30 07:26:38 +02:00
|
|
|
|
2014-07-25 13:02:01 +02:00
|
|
|
/**
|
|
|
|
* @param $array
|
|
|
|
*
|
|
|
|
* @return mixed
|
|
|
|
*/
|
2014-07-02 23:12:31 +02:00
|
|
|
public function auth($array);
|
2014-06-29 22:12:33 +02:00
|
|
|
|
2014-07-25 13:02:01 +02:00
|
|
|
/**
|
|
|
|
* @param $reset
|
|
|
|
*
|
|
|
|
* @return mixed
|
|
|
|
*/
|
2014-06-30 07:26:38 +02:00
|
|
|
public function findByReset($reset);
|
|
|
|
|
2014-07-25 13:02:01 +02:00
|
|
|
/**
|
|
|
|
* @param $email
|
|
|
|
*
|
|
|
|
* @return mixed
|
|
|
|
*/
|
2014-06-30 07:26:38 +02:00
|
|
|
public function findByEmail($email);
|
2014-06-29 22:12:33 +02:00
|
|
|
|
2014-07-25 13:02:01 +02:00
|
|
|
/**
|
|
|
|
* @param \User $user
|
|
|
|
* @param $password
|
|
|
|
*
|
|
|
|
* @return mixed
|
|
|
|
*/
|
2014-07-05 16:19:15 +02:00
|
|
|
public function updatePassword(\User $user, $password);
|
2014-07-03 09:16:17 +02:00
|
|
|
|
2014-06-29 22:12:33 +02:00
|
|
|
|
|
|
|
}
|