Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1441 ariadna 1
<?php
2
 
3
declare(strict_types=1);
4
 
5
namespace libphonenumber;
6
 
7
/**
8
 * Interface MatcherAPIInterface
9
 *
10
 * Internal phonenumber matching API used to isolate the underlying implementation of the
11
 * matcher and allow different implementations to be swapped in easily.
12
 *
13
 * @package libphonenumber
14
 * @internal
15
 */
16
interface MatcherAPIInterface
17
{
18
    /**
19
     * Returns whether the given national number (a string containing only decimal digits) matches
20
     * the national number pattern defined in the given {@code PhoneNumberDesc} message.
21
     */
22
    public function matchNationalNumber(string $number, PhoneNumberDesc $numberDesc, bool $allowPrefixMatch): bool;
23
}