for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Sylius\Component\Mailer\Event;
use Sylius\Component\Mailer\Model\EmailInterface;
use Symfony\Component\EventDispatcher\Event;
/**
* @author Gonzalo Vilaseca <[email protected]>
final class EmailSendEvent extends Event
{
* @var mixed
protected $message;
* @var string[]
protected $recipients;
* @var EmailInterface
protected $email;
* @var array
protected $data;
protected $replyTo;
* @param mixed $message
* @param array $recipients
* @param EmailInterface $email
* @param array $data
public function __construct($message, EmailInterface $email, array $data, array $recipients = [], array $replyTo = [])
$this->message = $message;
$this->email = $email;
$this->data = $data;
$this->recipients = $recipients;
$this->replyTo = $replyTo;
}
* @return array
public function getRecipients(): array
return $this->recipients;
* @return EmailInterface
public function getEmail(): EmailInterface
return $this->email;
* @return mixed
public function getMessage()
return $this->message;
public function getData(): array
return $this->data;
* @return string[]
public function getReplyTo(): array
return $this->replyTo;