| 1 | <?php |
||
| 18 | class SmsEvent |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var string $number Number |
||
| 22 | */ |
||
| 23 | private $number; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var string $message Message |
||
| 27 | */ |
||
| 28 | private $message; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var string|null $from From |
||
| 32 | */ |
||
| 33 | private $from; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Constructor. |
||
| 37 | * |
||
| 38 | * @param string $number Number |
||
| 39 | * @param string $message Message |
||
| 40 | * @param string|null $from From |
||
| 41 | */ |
||
| 42 | public function __construct($number, $message, $from = null) |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Get number. |
||
| 51 | * |
||
| 52 | * @return string Number |
||
| 53 | */ |
||
| 54 | public function getNumber() |
||
| 58 | |||
| 59 | /** |
||
| 60 | * Set number. |
||
| 61 | * |
||
| 62 | * @param string $number Number |
||
| 63 | * |
||
| 64 | * @return $this |
||
| 65 | */ |
||
| 66 | public function setNumber($number) |
||
| 72 | |||
| 73 | /** |
||
| 74 | * Get message. |
||
| 75 | * |
||
| 76 | * @return string Message |
||
| 77 | */ |
||
| 78 | public function getMessage() |
||
| 82 | |||
| 83 | /** |
||
| 84 | * Set message. |
||
| 85 | * |
||
| 86 | * @param string $message Message |
||
| 87 | * |
||
| 88 | * @return $this |
||
| 89 | */ |
||
| 90 | public function setMessage($message) |
||
| 96 | |||
| 97 | /** |
||
| 98 | * Get from. |
||
| 99 | * |
||
| 100 | * @return null|string From |
||
| 101 | */ |
||
| 102 | public function getFrom() |
||
| 106 | |||
| 107 | /** |
||
| 108 | * Set from. |
||
| 109 | * |
||
| 110 | * @param null|string $from From |
||
| 111 | * |
||
| 112 | * @return $this |
||
| 113 | */ |
||
| 114 | public function setFrom($from) |
||
| 120 | } |
||
| 121 |