ShortCode
class ShortCode extends Message
An object representing a short code, which is a phone number that is typically much shorter than regular phone numbers and can be used to address messages in MMS and SMS systems, as well as for abbreviated dialing (e.g. "Text 611 to see how many minutes you have remaining on your plan.").
Short codes are restricted to a region and are not internationally dialable, which means the same short code can exist in different regions, with different usage and pricing, even if those regions share the same country calling code (e.g. US and CA).
Generated from protobuf message google.type.PhoneNumber.ShortCode
Properties
protected | $region_code | Required. The BCP-47 region code of the location where calls to this short code can be made, such as "US" and "BB". | |
protected | $number | Required. The short code digits, without a leading plus ('+') or country calling code, e.g. "611". |
Methods
Constructor.
Required. The BCP-47 region code of the location where calls to this short code can be made, such as "US" and "BB".
Required. The BCP-47 region code of the location where calls to this short code can be made, such as "US" and "BB".
Required. The short code digits, without a leading plus ('+') or country calling code, e.g. "611".
Required. The short code digits, without a leading plus ('+') or country calling code, e.g. "611".
Details
at line 58
__construct(array $data = NULL)
Constructor.
at line 72
string
getRegionCode()
Required. The BCP-47 region code of the location where calls to this short code can be made, such as "US" and "BB".
Reference(s): - http://www.unicode.org/reports/tr35/#unicode_region_subtag
Generated from protobuf field string region_code = 1;
at line 87
$this
setRegionCode(string $var)
Required. The BCP-47 region code of the location where calls to this short code can be made, such as "US" and "BB".
Reference(s): - http://www.unicode.org/reports/tr35/#unicode_region_subtag
Generated from protobuf field string region_code = 1;
at line 102
string
getNumber()
Required. The short code digits, without a leading plus ('+') or country calling code, e.g. "611".
Generated from protobuf field string number = 2;
at line 115
$this
setNumber(string $var)
Required. The short code digits, without a leading plus ('+') or country calling code, e.g. "611".
Generated from protobuf field string number = 2;