public function RecipientGatewayEvent::__construct in SMS Framework 2.x
Same name and namespace in other branches
- 8 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 38
Class
- RecipientGatewayEvent
- Event fired to determine valid gateways for a recipient.
Namespace
Drupal\sms\EventCode
public function __construct($recipient) {
$this
->setRecipient($recipient);
}