/** * @param NotificationInterface[] $notifications * @param string $message * @param array $parameters */ public function __construct(array $notifications = array(), $message = null, array $parameters = array()) { parent::__construct($message, $parameters); foreach ($notifications as $notification) { $this->addNotifications($notification); } }
/** * Constructor. * * @param string $message * @param string $from * @param string $room * @param array $parameters */ public function __construct($message, $from, $room, array $parameters = array()) { parent::__construct($message, $parameters); $this->room = $room; $this->from = $from; }