1 | <?php |
||
20 | abstract class AbstractBaseSmsEvent |
||
21 | { |
||
22 | /** @var string */ |
||
23 | private $number; |
||
24 | |||
25 | /** @var string */ |
||
26 | private $message; |
||
27 | |||
28 | /** @var string|null */ |
||
29 | private $from; |
||
30 | |||
31 | /** |
||
32 | * @param string $number |
||
33 | * @param string $message |
||
34 | * @param string|null $from |
||
35 | */ |
||
36 | public function __construct(string $number, string $message, ?string $from = null) |
||
42 | |||
43 | /** |
||
44 | * @return string |
||
45 | */ |
||
46 | public function getNumber(): string |
||
50 | |||
51 | /** |
||
52 | * @param string $number |
||
53 | * |
||
54 | * @return $this |
||
55 | */ |
||
56 | public function setNumber(string $number): self |
||
62 | |||
63 | /** |
||
64 | * @return string |
||
65 | */ |
||
66 | public function getMessage(): string |
||
70 | |||
71 | /** |
||
72 | * @param string $message |
||
73 | * |
||
74 | * @return $this |
||
75 | */ |
||
76 | public function setMessage(string $message): self |
||
82 | |||
83 | /** |
||
84 | * @return null|string |
||
85 | */ |
||
86 | public function getFrom(): ?string |
||
90 | |||
91 | /** |
||
92 | * @param null|string $from |
||
93 | * |
||
94 | * @return $this |
||
95 | */ |
||
96 | public function setFrom(?string $from): self |
||
102 | } |
||
103 |