PHP Class libphonenumber\RegexBasedMatcher

Inheritance: implements libphonenumber\MatcherAPIInterface
Mostrar archivo Open project: giggsey/libphonenumber-for-php

Public Methods

Method Description
create ( )
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.

Method Details

create() public static method

public static create ( )

matchesNationalNumber() public method

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
return boolean