rinvex/laravel-auth

View on GitHub
src/Contracts/CanVerifyPhoneContract.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace Rinvex\Auth\Contracts;

interface CanVerifyPhoneContract
{
    /**
     * Get the phone for verification.
     *
     * @return string|null
     */
    public function getPhoneForVerification(): ?string;

    /**
     * Get the country for verification.
     *
     * @return string|null
     */
    public function getCountryForVerification(): ?string;

    /**
     * Determine if the user has verified their phone number.
     *
     * @return bool
     */
    public function hasVerifiedPhone(): bool;

    /**
     * Send the phone verification notification.
     *
     * @param string $method
     * @param bool   $force
     *
     * @return void
     */
    public function sendPhoneVerificationNotification(string $method, bool $force): void;
}