for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace NotificationChannels\NetGsm;
class NetGsmMessage
{
public $body = '';
public $header = null;
public $recipients = [];
/**
* @param string $body
* @return self
*/
public static function create($body = '')
return new static($body);
}
public function __construct($body = '')
if (! empty($body)) {
$this->body = trim($body);
public function setBody($body)
return $this;
* @param $header
public function setHeader($header)
$this->header = $header;
* @param string|array $recipients
public function setRecipients($recipients)
if (! is_array($recipients)) {
$recipients = [$recipients];
$this->recipients = $recipients;