Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250711) (9addea9f0ac)
libphonenumber\RegexBasedMatcher Class Reference
Inheritance diagram for libphonenumber\RegexBasedMatcher:
libphonenumber\MatcherAPIInterface

Public Member Functions

 matchNationalNumber (string $number, PhoneNumberDesc $numberDesc, bool $allowPrefixMatch)
 Returns whether the given national number (a string containing only decimal digits) matches the national number pattern defined in the given PhoneNumberDesc message.
 

Static Public Member Functions

static create ()
 

Member Function Documentation

◆ matchNationalNumber()

libphonenumber\RegexBasedMatcher::matchNationalNumber ( string $number,
PhoneNumberDesc $numberDesc,
bool $allowPrefixMatch )

Returns whether the given national number (a string containing only decimal digits) matches the national number pattern defined in the given PhoneNumberDesc message.

Implements libphonenumber\MatcherAPIInterface.


The documentation for this class was generated from the following file: