for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace NotificationChannels\Sipgate;
use Illuminate\Contracts\Support\Arrayable;
use JsonSerializable;
class SipgateMessage implements Arrayable, JsonSerializable
{
/** @var string */
protected $message;
protected $recipient;
protected $smsId;
/** @var int */
protected $sendAt;
/**
* SipgateMessage constructor.
* @param string $message
*/
public function __construct(string $message = '')
$this->message = $message;
}
* @return static
public static function create(string $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;
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;
* @return array
public function toArray()
return [
'message' => $this->message,
'recipient' => $this->recipient,
'smsId' => $this->smsId,
'sendAt' => $this->sendAt,
];
public function jsonSerialize()
return $this->toArray();