PHP Интерфейс libphonenumber\MatcherAPIInterface

Internal phonenumber matching API used to isolate the underlying implementation of the matcher and allow different implementations to be swapped in easily.
Показать файл Открыть проект

Открытые методы

Метод Описание
matchesNationalNumber ( string $nationalNumber, PhoneNumberDesc $numberDesc, boolean $allowPrefixMatch ) : boolean Returns whether the given national number (a string containing only decimal digits) matches the national number pattern defined in the given {@code PhoneNumberDesc} message.

Описание методов

matchesNationalNumber() публичный метод

Returns whether the given national number (a string containing only decimal digits) matches the national number pattern defined in the given {@code PhoneNumberDesc} message.
public matchesNationalNumber ( string $nationalNumber, PhoneNumberDesc $numberDesc, boolean $allowPrefixMatch ) : boolean
$nationalNumber string
$numberDesc PhoneNumberDesc
$allowPrefixMatch boolean
Результат boolean