You are here

public function RecipientGatewayEvent::__construct in SMS Framework 8

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

Constructs the object.

Parameters

string $recipient: The recipient phone number.

File

src/Event/RecipientGatewayEvent.php, line 36

Class

RecipientGatewayEvent
Event fired to determine valid gateways for a recipient.

Namespace

Drupal\sms\Event

Code

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