1 | <?php |
||
22 | class SmsEvent extends Event |
||
|
|||
23 | { |
||
24 | /** @var string */ |
||
25 | private $number; |
||
26 | |||
27 | /** @var string */ |
||
28 | private $message; |
||
29 | |||
30 | /** @var string|null */ |
||
31 | private $from; |
||
32 | |||
33 | /** |
||
34 | * @param string $number |
||
35 | * @param string $message |
||
36 | * @param string|null $from |
||
37 | */ |
||
38 | public function __construct(string $number, string $message, ?string $from = null) |
||
44 | |||
45 | /** |
||
46 | * @return string |
||
47 | */ |
||
48 | public function getNumber(): string |
||
52 | |||
53 | /** |
||
54 | * @param string $number |
||
55 | * |
||
56 | * @return $this |
||
57 | */ |
||
58 | public function setNumber(string $number): self |
||
64 | |||
65 | /** |
||
66 | * @return string |
||
67 | */ |
||
68 | public function getMessage(): string |
||
72 | |||
73 | /** |
||
74 | * @param string $message |
||
75 | * |
||
76 | * @return $this |
||
77 | */ |
||
78 | public function setMessage(string $message): self |
||
84 | |||
85 | /** |
||
86 | * @return null|string |
||
87 | */ |
||
88 | public function getFrom(): ?string |
||
92 | |||
93 | /** |
||
94 | * @param null|string $from |
||
95 | * |
||
96 | * @return $this |
||
97 | */ |
||
98 | public function setFrom(?string $from): self |
||
104 | } |
||
105 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.