You are here

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

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

Constructs the object.

Parameters

\Drupal\sms\Message\SmsMessageInterface[] $messages: The SMS message.

File

src/Event/SmsMessageEvent.php, line 32

Class

SmsMessageEvent
Event fired when SMS messages are processed.

Namespace

Drupal\sms\Event

Code

public function __construct(array $messages) {
  $this
    ->setMessages($messages);
}