for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace NotificationChannels\Sendberry;
class SendberryMessage
{
/**
* The phone number the message should be sent from.
*
* @var string
*/
public $from = '';
* The message content.
public $content = '';
* Time of sending a message.
public $time;
public $date;
public $webhook = '';
* @var bool
public $test;
* @param string $content
public function __construct($content = '')
$this->content = $content;
}
* Create a new message instance.
* @return static
public static function create($content = '')
return new static($content);
* Set the message content.
* @return $this
public function content($content)
return $this;
* Set the phone number or sender name the message should be sent from.
* @param string $from
public function from($from)
$this->from = $from;
* @param string|null $time
public function time(string $time = null)
$this->time = $time;
public function date(string $date = null)
$this->date = $date;
* @param string|null $url
public function webhook(string $url = null)
$this->webhook = $url;
* Set the test SMS - imitation sending.
public function test(bool $test = false)
$this->test = $test;