PHP Class Cartalyst\Sentinel\Reminders\IlluminateReminderRepository

Inheritance: implements Cartalyst\Sentinel\Reminders\ReminderRepositoryInterface, use trait Cartalyst\Support\Traits\RepositoryTrait
Show file Open project: cartalyst/sentinel Class Usage Examples

Protected Properties

Property Type Description
$expires integer The expiration time in seconds.
$model string The Eloquent reminder model name.
$users Cartalyst\Sentinel\Users\UserRepositoryInterface The user repository.

Public Methods

Method Description
__construct ( Cartalyst\Sentinel\Users\UserRepositoryInterface $users, string $model = null, integer $expires = null ) : void Create a new Illuminate reminder repository.
complete ( Cartalyst\Sentinel\Users\UserInterface $user, $code, $password ) {@inheritDoc}
create ( Cartalyst\Sentinel\Users\UserInterface $user ) {@inheritDoc}
exists ( Cartalyst\Sentinel\Users\UserInterface $user, $code = null ) {@inheritDoc}
removeExpired ( ) {@inheritDoc}

Protected Methods

Method Description
expires ( ) : Carbon\Carbon Returns the expiration date.
generateReminderCode ( ) : string Returns a random string for a reminder code.

Method Details

__construct() public method

Create a new Illuminate reminder repository.
public __construct ( Cartalyst\Sentinel\Users\UserRepositoryInterface $users, string $model = null, integer $expires = null ) : void
$users Cartalyst\Sentinel\Users\UserRepositoryInterface
$model string
$expires integer
return void

complete() public method

{@inheritDoc}
public complete ( Cartalyst\Sentinel\Users\UserInterface $user, $code, $password )
$user Cartalyst\Sentinel\Users\UserInterface

create() public method

{@inheritDoc}
public create ( Cartalyst\Sentinel\Users\UserInterface $user )
$user Cartalyst\Sentinel\Users\UserInterface

exists() public method

{@inheritDoc}
public exists ( Cartalyst\Sentinel\Users\UserInterface $user, $code = null )
$user Cartalyst\Sentinel\Users\UserInterface

expires() protected method

Returns the expiration date.
protected expires ( ) : Carbon\Carbon
return Carbon\Carbon

generateReminderCode() protected method

Returns a random string for a reminder code.
protected generateReminderCode ( ) : string
return string

removeExpired() public method

{@inheritDoc}
public removeExpired ( )

Property Details

$expires protected property

The expiration time in seconds.
protected int $expires
return integer

$model protected property

The Eloquent reminder model name.
protected string $model
return string

$users protected property

The user repository.
protected UserRepositoryInterface,Cartalyst\Sentinel\Users $users
return Cartalyst\Sentinel\Users\UserRepositoryInterface