You are here

public function RecipientGatewayEvent::setRecipient in SMS Framework 8

Same name and namespace in other branches
  1. 2.x src/Event/RecipientGatewayEvent.php \Drupal\sms\Event\RecipientGatewayEvent::setRecipient()
  2. 2.1.x src/Event/RecipientGatewayEvent.php \Drupal\sms\Event\RecipientGatewayEvent::setRecipient()

Set the phone number for this event.

Parameters

string $recipient: The phone number for this event.

Return value

$this Return this event for chaining.

1 call to RecipientGatewayEvent::setRecipient()
RecipientGatewayEvent::__construct in src/Event/RecipientGatewayEvent.php
Constructs the object.

File

src/Event/RecipientGatewayEvent.php, line 59

Class

RecipientGatewayEvent
Event fired to determine valid gateways for a recipient.

Namespace

Drupal\sms\Event

Code

public function setRecipient($recipient) {
  $this->recipient = $recipient;
  return $this;
}