You are here

public function SmsMessageEvent::__construct in SMS Framework 8

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

Class

SmsMessageEvent
Event fired when SMS messages are processed.

Namespace

Drupal\sms\Event

Code

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