for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace NotificationChannels\AfricasTalking;
class AfricasTalkingMessage
{
/** @var string */
protected $content;
/** @var string|null */
protected $from;
protected $to;
/**
* Set content for this message.
*
* @param string $content
* @return this
*/
public function content(string $content): self
$this->content = trim($content);
return $this;
}
* Set sender for this message.
* @param string $from
* @return self
public function from(string $from): self
$this->from = trim($from);
* Set recipient for this message.
public function to(string $to): self
$this->to = trim($to);
* Get message content.
* @return string
public function getContent()
return $this->content;
* Get sender info.
public function getSender()
return $this->from ?? config('services.africastalking.from');
* Get recipient info.
public function getTo()
return $this->to ?? null;