radarrplexorganizrnginxsonarrdashboardsabnzbdheimdallembycouchpotatonzbgetbookmarkapplication-dashboardmuximuxlandingpagestartpagelandinghtpcserverhomepage
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
1.2 KiB
76 lines
1.2 KiB
<?php
|
|
|
|
namespace Illuminate\Notifications\Messages;
|
|
|
|
class NexmoMessage
|
|
{
|
|
/**
|
|
* The message content.
|
|
*
|
|
* @var string
|
|
*/
|
|
public $content;
|
|
|
|
/**
|
|
* The phone number the message should be sent from.
|
|
*
|
|
* @var string
|
|
*/
|
|
public $from;
|
|
|
|
/**
|
|
* The message type.
|
|
*
|
|
* @var string
|
|
*/
|
|
public $type = 'text';
|
|
|
|
/**
|
|
* Create a new message instance.
|
|
*
|
|
* @param string $content
|
|
* @return void
|
|
*/
|
|
public function __construct($content = '')
|
|
{
|
|
$this->content = $content;
|
|
}
|
|
|
|
/**
|
|
* Set the message content.
|
|
*
|
|
* @param string $content
|
|
* @return $this
|
|
*/
|
|
public function content($content)
|
|
{
|
|
$this->content = $content;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Set the phone number the message should be sent from.
|
|
*
|
|
* @param string $from
|
|
* @return $this
|
|
*/
|
|
public function from($from)
|
|
{
|
|
$this->from = $from;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Set the message type.
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function unicode()
|
|
{
|
|
$this->type = 'unicode';
|
|
|
|
return $this;
|
|
}
|
|
}
|
|
|