src/ShortNumberInfo.php
protected function regionDialingFromMatchesNumber(PhoneNumber $number, $regionDialingFrom)
    {
        $regionCodes = $this->getRegionCodesForCountryCode($number->getCountryCode());

        return in_array($regionDialingFrom, $regionCodes);
    }
protected function regionDialingFromMatchesNumber(PhoneNumber $number, $regionDialingFrom)
    {
        $regionCodes = $this->getRegionCodesForCountryCode($number->getCountryCode());

        return in_array($regionDialingFrom, $regionCodes);
    }
protected function regionDialingFromMatchesNumber ( PhoneNumber $ number , $ regionDialingFrom ) { $ regionCodes = $ this -> getRegionCodesForCountryCode ( $ number -> getCountryCode ( ) ) ; return in_array ( $ regionDialingFrom , $ regionCodes ) ; }
Helper method to check that the country calling code of the number matches the region it's
being dialed from.
@param PhoneNumber $number
@param string $regionDialingFrom
@return bool
Helper method to check that the country calling code of the number matches the region it s being dialed from .