public function SmsMessage::setSenderNumber in SMS Framework 8
Same name in this branch
- 8 src/Message/SmsMessage.php \Drupal\sms\Message\SmsMessage::setSenderNumber()
- 8 src/Entity/SmsMessage.php \Drupal\sms\Entity\SmsMessage::setSenderNumber()
Same name and namespace in other branches
- 2.x src/Entity/SmsMessage.php \Drupal\sms\Entity\SmsMessage::setSenderNumber()
- 2.1.x src/Entity/SmsMessage.php \Drupal\sms\Entity\SmsMessage::setSenderNumber()
Set the phone number of the sender.
Parameters
string $number: The phone number of the sender.
Return value
$this Return SMS message for chaining.
Overrides SmsMessageInterface::setSenderNumber
File
- src/
Entity/ SmsMessage.php, line 356
Class
- SmsMessage
- Defines the SMS message entity.
Namespace
Drupal\sms\EntityCode
public function setSenderNumber($number) {
$this
->set('sender_phone_number', $number);
return $this;
}