libphonenumber\ShortNumberInfo::matchesPossibleNumberAndNationalNumber PHP Method

matchesPossibleNumberAndNationalNumber() protected method

TODO: Once we have benchmarked ShortnumberInfo, consider if it is worth keeping this performance optimization.
protected matchesPossibleNumberAndNationalNumber ( string $number, PhoneNumberDesc $numberDesc ) : boolean
$number string
$numberDesc PhoneNumberDesc
return boolean
    protected function matchesPossibleNumberAndNationalNumber($number, PhoneNumberDesc $numberDesc)
    {
        if (count($numberDesc->getPossibleLength()) > 0 && !in_array(strlen($number), $numberDesc->getPossibleLength())) {
            return false;
        }
        return $this->matcherAPI->matchesNationalNumber($number, $numberDesc, false);
    }