for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace NotificationChannels\Unisender;
class UnisenderMessage
{
public $to;
public $from;
public $content;
public $token;
public $silent = false;
/**
* Set API Token.
*
* @param string $token
* @return UnisenderMessage
*/
public function usingApiToken(string $token)
$this->token = $token;
return $this;
}
* Send message silently (without raising any exceptions).
* @param bool $flag
public function silent(bool $flag = true)
$this->silent = $flag;
* Set the message's receivers.
* @param array|string $to
public function to($to)
if (is_array($to)) {
$to = implode(',', $to);
$this->to = $to;
* Set the message's sender.
* @param string $from
public function from(string $from)
$this->from = $from;
* Set the message's content.
* @param string $content
public function content(string $content)
$this->content = $content;