DatabaseReminderRepository
class DatabaseReminderRepository implements ReminderRepositoryInterface (View source)
Methods
void
__construct(
Connection $connection,
string $table,
string $hashKey,
int $expires = 60)
Create a new reminder repository instance.
string
bool
exists(
RemindableInterface $user,
string $token)
Determine if a reminder record exists and is valid.
void
delete(
string $token)
Delete a reminder record by token.
void
deleteExpired()
Delete expired reminders.
string
getConnection()
Get the database connection instance.
Details
at line line 45
void
__construct(
Connection $connection,
string $table,
string $hashKey,
int $expires = 60)
Create a new reminder repository instance.
at line line 105
bool
exists(
RemindableInterface $user,
string $token)
Determine if a reminder record exists and is valid.