openstatus.notification.v1.SmsData
*/
class SmsData extends \Google\Protobuf\Internal\Message
{
/**
* Phone number to send SMS to.
*
* Generated from protobuf field string phone_number = 1 [json_name = "phoneNumber", (.gnostic.openapi.v3.property) = {
*/
protected $phone_number = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $phone_number
* Phone number to send SMS to.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Openstatus\Notification\V1\Providers::initOnce();
parent::__construct($data);
}
/**
* Phone number to send SMS to.
*
* Generated from protobuf field string phone_number = 1 [json_name = "phoneNumber", (.gnostic.openapi.v3.property) = {
* @return string
*/
public function getPhoneNumber()
{
return $this->phone_number;
}
/**
* Phone number to send SMS to.
*
* Generated from protobuf field string phone_number = 1 [json_name = "phoneNumber", (.gnostic.openapi.v3.property) = {
* @param string $var
* @return $this
*/
public function setPhoneNumber(string $var)
{
GPBUtil::checkString($var, true);
$this->phone_number = $var;
return $this;
}
}