UserVerifyRepositoryInterface
in
Interface UserVerify.
Tags
Table of Contents
Methods
- addSuffixCode() : string
- checkResend() : void
- cleanupPending() : mixed
- commonVerify() : void
- generate() : UserVerify|null
- getRemainingTime() : int
- getVerifyCode() : string
- invalidatePendingVerify() : mixed
- mustVerifyEmail() : bool
- mustVerifyPhoneNumber() : bool
- resend() : void
- resendLink() : void
- sendVerificationEmail() : void
- sendVerificationPhoneNumber() : void
Methods
addSuffixCode()
public
addSuffixCode(string $code, string $action) : string
Parameters
- $code : string
- $action : string
Return values
stringcheckResend()
public
checkResend(User $user, string $action) : void
Parameters
- $user : User
- $action : string
cleanupPending()
public
cleanupPending() : mixed
commonVerify()
public
commonVerify(UserVerify|null $verify) : void
Parameters
- $verify : UserVerify|null
generate()
public
generate(User $user, string $action, string $verifiable, string $code) : UserVerify|null
Parameters
- $user : User
- $action : string
- $verifiable : string
- $code : string
Return values
UserVerify|nullgetRemainingTime()
public
getRemainingTime(User $user, string $action) : int
Parameters
- $user : User
- $action : string
Return values
intgetVerifyCode()
public
getVerifyCode(string $action) : string
Parameters
- $action : string
Return values
stringinvalidatePendingVerify()
public
invalidatePendingVerify(User $user, string $action) : mixed
Parameters
- $user : User
- $action : string
mustVerifyEmail()
public
mustVerifyEmail(string|null $email, array<string|int, mixed> $attributes) : bool
Parameters
- $email : string|null
- $attributes : array<string|int, mixed>
Return values
boolmustVerifyPhoneNumber()
public
mustVerifyPhoneNumber(string|null $phoneNumber, array<string|int, mixed> $attributes) : bool
Parameters
- $phoneNumber : string|null
- $attributes : array<string|int, mixed>
Return values
boolresend()
public
resend(array<string|int, mixed> $params) : void
Parameters
- $params : array<string|int, mixed>
resendLink()
public
resendLink(User $user, string $action, string $verifiableValue) : void
Parameters
- $user : User
- $action : string
- $verifiableValue : string
Tags
sendVerificationEmail()
public
sendVerificationEmail(User $user, string $verifiable) : void
Parameters
- $user : User
- $verifiable : string
sendVerificationPhoneNumber()
public
sendVerificationPhoneNumber(User $user, string $verifiable) : void
Parameters
- $user : User
- $verifiable : string