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 SmsGate package
*
* (c) SmsGate
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code
*/
namespace SmsGate;
/**
* The value object for store message
* @author Vitaiy Zhuk <[email protected]>
class Message
{
* The name of sender
* @var string
private $sender;
* The text of message
private $message;
* Constructor.
* @param string $message
* @param string $sender
public function __construct(string $message, string $sender = null)
$this->message = $message;
$this->sender = $sender;
}
* Get the name of sender
* @return null|string
public function getSender(): ?string
return $this->sender;
* Get the text of message
* @return string
public function getMessage(): string
return $this->message;