65 lines
1.3 KiB
YAML
65 lines
1.3 KiB
YAML
name: TokenRepositoryInterface
|
|
class_comment: null
|
|
dependencies:
|
|
- name: CanResetPasswordContract
|
|
type: class
|
|
source: Illuminate\Contracts\Auth\CanResetPassword
|
|
properties: []
|
|
methods:
|
|
- name: create
|
|
visibility: public
|
|
parameters:
|
|
- name: user
|
|
comment: '# * Create a new token.
|
|
|
|
# *
|
|
|
|
# * @param \Illuminate\Contracts\Auth\CanResetPassword $user
|
|
|
|
# * @return string'
|
|
- name: exists
|
|
visibility: public
|
|
parameters:
|
|
- name: user
|
|
- name: token
|
|
comment: '# * Determine if a token record exists and is valid.
|
|
|
|
# *
|
|
|
|
# * @param \Illuminate\Contracts\Auth\CanResetPassword $user
|
|
|
|
# * @param string $token
|
|
|
|
# * @return bool'
|
|
- name: recentlyCreatedToken
|
|
visibility: public
|
|
parameters:
|
|
- name: user
|
|
comment: '# * Determine if the given user recently created a password reset token.
|
|
|
|
# *
|
|
|
|
# * @param \Illuminate\Contracts\Auth\CanResetPassword $user
|
|
|
|
# * @return bool'
|
|
- name: delete
|
|
visibility: public
|
|
parameters:
|
|
- name: user
|
|
comment: '# * Delete a token record.
|
|
|
|
# *
|
|
|
|
# * @param \Illuminate\Contracts\Auth\CanResetPassword $user
|
|
|
|
# * @return void'
|
|
- name: deleteExpired
|
|
visibility: public
|
|
parameters: []
|
|
comment: '# * Delete expired tokens.
|
|
|
|
# *
|
|
|
|
# * @return void'
|
|
traits: []
|
|
interfaces: []
|