Namshi\Notificator\NotificationInterface::getParameters PHP Method

getParameters() public method

They are usually used by handlers to build the actual notification (ie. dynamic content in emails or smses).
public getParameters ( ) : array
return array
    function getParameters();

Usage Example

Example #1
0
 /**
  * @inheritDoc
  */
 public function handle(NotificationInterface $notification)
 {
     foreach ($notification->getRecipientAddresses() as $recipientAddress) {
         $this->getEmailClient()->sendEmail($notification->getEmailTemplate(), $recipientAddress, $notification->getParameters());
     }
     return true;
 }
NotificationInterface