| 1 | <?php |
||
| 21 | class MailerAction implements Action |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * The email subject. |
||
| 25 | * |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | private $subject; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * The email HTML template. |
||
| 32 | * |
||
| 33 | * @var string |
||
| 34 | */ |
||
| 35 | private $template; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * The receiver email. |
||
| 39 | * |
||
| 40 | * @var string |
||
| 41 | */ |
||
| 42 | private $to; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Constructor. |
||
| 46 | * |
||
| 47 | * @param string $to The receiver email |
||
| 48 | * @param string $template The email HTML template |
||
| 49 | * @param string $subject The email subject |
||
| 50 | */ |
||
| 51 | public function __construct($to, $template, $subject) |
||
| 57 | |||
| 58 | /** |
||
| 59 | * {@inheritdoc} |
||
| 60 | */ |
||
| 61 | public function execute(FormInterface $form) |
||
| 75 | } |
||
| 76 |