\Charcoal\Admin\UserLostPasswordToken

Summary

Methods
Properties
Constants
key()
setToken()
token()
setUser()
user()
setExpiry()
expiry()
preSave()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$token
$user
$expiry
N/A

Properties

$token

$token : string

Type

string

$user

$user : mixed

Type

mixed

$expiry

$expiry : \DateTimeInterface

Type

\DateTimeInterface

Methods

key()

key() : string

Returns

string

token()

token() : string

Returns

string

user()

user() : string

Returns

string

setExpiry()

setExpiry(\DateTime|string|null  $expiry) : \Charcoal\Admin\User\LostPasswordToken

Parameters

\DateTime|string|null $expiry

The date/time at object's creation.

Throws

\InvalidArgumentException

If the date/time is invalid.

Returns

\Charcoal\Admin\User\LostPasswordToken

Chainable

expiry()

expiry() : \DateTime|null

Returns

\DateTime|null

preSave()

preSave() : boolean

Returns

boolean