for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of the Valkyrja Framework package.
*
* (c) Melech Mizrachi <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Valkyrja\Sms\Data;
use Valkyrja\Sms\Data\Contract\Message as Contract;
/**
* Class Message.
* @author Melech Mizrachi
class Message implements Contract
{
* The message to.
* @var string
protected string $to;
* The message from.
protected string $from;
* The message text.
protected string $text;
* Whether the text is unicode.
* @var bool
protected bool $isUnicode = true;
* @inheritDoc
public function getTo(): string
return $this->to;
}
public function setTo(string $to): static
$this->to = $to;
return $this;
public function getFrom(): string
return $this->from;
public function setFrom(string $from): static
$this->from = $from;
public function getText(): string
return $this->text;
public function setText(string $text): static
$this->text = $text;
public function isUnicode(): bool
return $this->isUnicode;
public function setIsUnicode(bool $isUnicode = true): static
$this->isUnicode = $isUnicode;