public function SmsMessage::setSenderNumber in SMS Framework 2.1.x
Same name in this branch
- 2.1.x src/Message/SmsMessage.php \Drupal\sms\Message\SmsMessage::setSenderNumber()
- 2.1.x src/Entity/SmsMessage.php \Drupal\sms\Entity\SmsMessage::setSenderNumber()
Same name and namespace in other branches
- 8 src/Entity/SmsMessage.php \Drupal\sms\Entity\SmsMessage::setSenderNumber()
- 2.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 358
Class
- SmsMessage
- Defines the SMS message entity.
Namespace
Drupal\sms\EntityCode
public function setSenderNumber($number) {
$this
->set('sender_phone_number', $number);
return $this;
}