Moodle PHP Documentation 5.0
Moodle 5.0.1+ (Build: 20250711) (61af040cd5f)
libphonenumber\PhoneNumberMatch Class Reference
Inheritance diagram for libphonenumber\PhoneNumberMatch:

Public Member Functions

 __construct (int $start, string $rawString, private PhoneNumber $number)
 Creates a new match.
 
 __toString ()
 
 end ()
 Returns the exclusive end index of the matched phone number within the searched text.
 
 number ()
 Returns the phone number matched by the receiver.
 
 rawString ()
 Returns the raw string matched as a phone number in the searched text.
 
 start ()
 Returns the start index of the matched phone number within the searched text.
 

Constructor & Destructor Documentation

◆ __construct()

libphonenumber\PhoneNumberMatch::__construct ( int $start,
string $rawString,
private PhoneNumber $number )

Creates a new match.

Parameters
int$startThe start index into the target text
string$rawStringThe matched substring of the target text
PhoneNumber$numberThe matched phone number

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