You are here

public function RecipientGatewayEvent::__construct in SMS Framework 2.1.x

Same name and namespace in other branches
  1. 8 src/Event/RecipientGatewayEvent.php \Drupal\sms\Event\RecipientGatewayEvent::__construct()
  2. 2.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 38

Class

RecipientGatewayEvent
Event fired to determine valid gateways for a recipient.

Namespace

Drupal\sms\Event

Code

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