for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SimonKub\Laravel\Notifications\Sipgate;
use Illuminate\Contracts\Support\Arrayable;
class SipgateMessage implements Arrayable
{
/** @var string */
protected $message;
protected $recipient;
protected $smsId;
/** @var int */
protected $sendAt;
public function __construct($message = '')
$this->message = $message;
}
public static function create($message = '')
return new static($message);
/**
* @return string
*/
public function getSmsId()
return $this->smsId;
* @param string $smsId
*
* @return SipgateMessage
public function smsId(string $smsId)
$this->smsId = $smsId;
return $this;
public function getMessage()
return $this->message;
* @param string $message
public function message(string $message)
public function getRecipient()
return $this->recipient;
* @param string $recipient
public function recipient(string $recipient)
$this->recipient = $recipient;
* @return int | null
public function getSendAt()
return $this->sendAt;
* @param int $sendAt
public function sendAt($sendAt)
$this->sendAt = $sendAt;
public function toArray()
return [
'message' => $this->message,
'recipient' => $this->recipient,
'smsId' => $this->smsId,
'sendAt' => $this->sendAt,
];