for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the FreshSinchBundle
*
* (c) Artem Henvald <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Fresh\SinchBundle\Event;
/**
* AbstractBaseSmsEvent.
* @author Artem Henvald <[email protected]>
abstract class AbstractBaseSmsEvent
{
/** @var string */
private $number;
private $message;
/** @var string|null */
private $from;
* @param string $number
* @param string $message
* @param string|null $from
public function __construct(string $number, string $message, ?string $from = null)
$this->number = $number;
$this->message = $message;
$this->from = $from;
}
* @return string
public function getNumber(): string
return $this->number;
* @return $this
public function setNumber(string $number): self
return $this;
public function getMessage(): string
return $this->message;
public function setMessage(string $message): self
* @return null|string
public function getFrom(): ?string
return $this->from;
* @param null|string $from
public function setFrom(?string $from): self