for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BrainExe\Core\Mail;
use BrainExe\Core\EventDispatcher\AbstractEvent;
/**
* @api
*/
class SendMailEvent extends AbstractEvent
{
const TYPE = 'email.send';
* @var string
private $recipient;
private $subject;
private $body;
* @param string $recipient
* @param string $subject
* @param string $body
public function __construct($recipient, $subject, $body)
parent::__construct(self::TYPE);
$this->recipient = $recipient;
$this->subject = $subject;
$this->body = $body;
}
* @return string
public function getRecipient()
return $this->recipient;
public function getSubject()
return $this->subject;
public function getBody()
return $this->body;