first commit
This commit is contained in:
commit
e81864e683
2984 files changed
+267797
No files matched your search
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace In2code\Femanager\Event;
|
||||
|
||||
use In2code\Femanager\Domain\Service\SendMailService;
|
||||
use Symfony\Component\Mime\Email;
|
||||
|
||||
class AfterMailSendEvent
|
||||
{
|
||||
/**
|
||||
* @var Email
|
||||
*/
|
||||
private $email;
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
private $variables;
|
||||
/**
|
||||
* @var SendMailService
|
||||
*/
|
||||
private $service;
|
||||
|
||||
public function __construct(Email $email, array $variables, SendMailService $service)
|
||||
{
|
||||
$this->email = $email;
|
||||
$this->variables = $variables;
|
||||
$this->service = $service;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Email
|
||||
*/
|
||||
public function getEmail(): Email
|
||||
{
|
||||
return $this->email;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return SendMailService
|
||||
*/
|
||||
public function getService(): SendMailService
|
||||
{
|
||||
return $this->service;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function getVariables(): array
|
||||
{
|
||||
return $this->variables;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user