%PDF- %GIF98; %PNG;
Server : ApacheSystem : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64 User : addictionfreeind ( 1003) PHP Version : 7.2.34 Disable Function : exec,passthru,shell_exec,system Directory : /home/addictionfreeind/www/admin1/vendor/laravel-notification-channels/twilio/src/ |
Upload File : |
<?php
namespace NotificationChannels\Twilio;
abstract class TwilioMessage
{
/**
* The message content.
*
* @var string
*/
public $content;
/**
* The phone number the message should be sent from.
*
* @var string
*/
public $from;
/**
* @var null|string
*/
public $statusCallback;
/**
* @var null|string
*/
public $statusCallbackMethod;
/**
* Create a message object.
* @param string $content
* @return static
*/
public static function create(string $content = ''): self
{
return new static($content);
}
/**
* Create a new message instance.
*
* @param string $content
*/
public function __construct(string $content = '')
{
$this->content = $content;
}
/**
* Set the message content.
*
* @param string $content
* @return $this
*/
public function content(string $content): self
{
$this->content = $content;
return $this;
}
/**
* Set the phone number the message should be sent from.
*
* @param string $from
* @return $this
*/
public function from(string $from): self
{
$this->from = $from;
return $this;
}
/**
* Get the from address.
*
* @return string|null
*/
public function getFrom(): ?string
{
return $this->from;
}
/**
* Set the status callback.
*
* @param string $statusCallback
* @return $this
*/
public function statusCallback(string $statusCallback): self
{
$this->statusCallback = $statusCallback;
return $this;
}
/**
* Set the status callback request method.
*
* @param string $statusCallbackMethod
* @return $this
*/
public function statusCallbackMethod(string $statusCallbackMethod): self
{
$this->statusCallbackMethod = $statusCallbackMethod;
return $this;
}
}