| 1 | <?php |
||
| 5 | class TwilioSmsMessage extends TwilioMessage |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var null|string |
||
| 9 | */ |
||
| 10 | public $alphaNumSender = null; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Get the from address of this message. |
||
| 14 | * |
||
| 15 | * @return null|string |
||
| 16 | */ |
||
| 17 | public function getFrom() |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Set the alphanumeric sender. |
||
| 30 | * |
||
| 31 | * @param $sender |
||
| 32 | */ |
||
| 33 | public function sender($sender) |
||
| 37 | } |
||
| 38 |
In PHP, under loose comparison (like
==, or!=, orswitchconditions), values of different types might be equal.For
stringvalues, the empty string''is a special case, in particular the following results might be unexpected: