public function RecipientGatewayEvent::__construct in SMS Framework 8
Same name and namespace in other branches
- 2.x src/Event/RecipientGatewayEvent.php \Drupal\sms\Event\RecipientGatewayEvent::__construct()
- 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\EventCode
public function __construct($recipient) {
$this
->setRecipient($recipient);
}