for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace NotificationChannels\SmsRu;
use Illuminate\Support\Arr;
class SmsRuMessage
{
/**
* The phone number the message should be sent from.
*
* @var string
*/
public $from = '';
* The message content.
public $content = '';
* Time of sending a message.
* @var int
public $time;
public $partnerId;
* @var bool
public $test;
public $translit;
* Create a new message instance.
* @param string $content
* @return static
public static function create($content = '')
return new static($content);
}
public function __construct($content = '')
$this->content = $content;
* Set the message content.
* @return $this
public function content($content)
return $this;
* Set the translit for SMS content.
* @param string $from
public function translit(bool $translit = false)
$this->translit = $translit;
* Set the test SMS - imitation sending.
public function test(bool $test = false)
$this->test = $test;
* Set the test partner_id.
public function partnerId($partnerId)
$this->partnerId = $partnerId;
* Set the phone number or sender name the message should be sent from.
public function from($from)
$this->from = $from;
* Postpone shipping for -n- sec.
* @param null $time
$time
null
public function time(int $time = null)
$this->time = $time;