src/ShortNumberInfo.php
public function getExampleShortNumber($regionCode)
    {
        $phoneMetadata = $this->getMetadataForRegion($regionCode);
        if ($phoneMetadata === null) {
            return '';
        }

        /** @var PhoneNumberDesc $desc */
        $desc = $phoneMetadata->getShortCode();
        if ($desc !== null && $desc->hasExampleNumber()) {
            return $desc->getExampleNumber();
        }
        return '';
    }
public function getExampleShortNumber($regionCode)
    {
        $phoneMetadata = $this->getMetadataForRegion($regionCode);
        if ($phoneMetadata === null) {
            return '';
        }

        /** @var PhoneNumberDesc $desc */
        $desc = $phoneMetadata->getShortCode();
        if ($desc !== null && $desc->hasExampleNumber()) {
            return $desc->getExampleNumber();
        }
        return '';
    }
public function getExampleShortNumber ( $ regionCode ) { $ phoneMetadata = $ this -> getMetadataForRegion ( $ regionCode ) ; if ( $ phoneMetadata === null ) { return '' ; } /** @var PhoneNumberDesc $desc */ $ desc = $ phoneMetadata -> getShortCode ( ) ; if ( $ desc !== null && $ desc -> hasExampleNumber ( ) ) { return $ desc -> getExampleNumber ( ) ; } return '' ; }
Gets a valid short number for the specified region.

@param $regionCode String the region for which an example short number is needed
@return string a valid short number for the specified region. Returns an empty string when the
metadata does not contain such information.
Gets a valid short number for the specified region .