for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace RM\SMSender;
use RM\SMSender\IMessage;
/**
* Basic implementation of Message.
*/
class Message implements IMessage
{
/** @var string */
protected $from = '';
protected $to = '';
protected $text = '';
public function setFrom(string $from = '') : IMessage
$this->from = $from;
return $this;
}
public function setTo(string $number = '') : IMessage
$this->to = $number;
public function setText(string $text = '') : IMessage
$this->text = $text;
public function getFrom() : string
return $this->from;
public function getTo() : string
return $this->to;
public function getText() : string
return $this->text;