You are here

public static function MobileNumberInterface::generateVerificationCode in Mobile Number 7

Generates a random numeric string.

Parameters

int $length: Number of digits.

Return value

string Code in length of $length.

1 method overrides MobileNumberInterface::generateVerificationCode()
MobileNumber::generateVerificationCode in src/MobileNumber.php
Generates a random numeric string.

File

src/MobileNumberInterface.php, line 65
MobileNumberInterface.

Class

MobileNumberInterface
Provides an interface for defining mobile numbers.

Code

public static function generateVerificationCode($length = 4);