public function SmsMessage::setDirection in SMS Framework 2.x
Same name in this branch
- 2.x src/Message/SmsMessage.php \Drupal\sms\Message\SmsMessage::setDirection()
- 2.x src/Entity/SmsMessage.php \Drupal\sms\Entity\SmsMessage::setDirection()
Same name and namespace in other branches
- 8 src/Entity/SmsMessage.php \Drupal\sms\Entity\SmsMessage::setDirection()
- 2.1.x src/Entity/SmsMessage.php \Drupal\sms\Entity\SmsMessage::setDirection()
Set direction of the message.
Parameters
int $direction: Any of \Drupal\sms\Direction constants.
Return value
$this Return SMS message for chaining.
Overrides SmsMessageInterface::setDirection
File
- src/
Entity/ SmsMessage.php, line 328
Class
- SmsMessage
- Defines the SMS message entity.
Namespace
Drupal\sms\EntityCode
public function setDirection($direction) {
$this
->set('direction', $direction);
return $this;
}