‪TYPO3CMS  ‪main
BeforeMailerSentMessageEvent.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
20 use Symfony\Component\Mailer\Envelope;
21 use Symfony\Component\Mailer\MailerInterface;
22 use Symfony\Component\Mime\RawMessage;
23 
32 {
33  public function ‪__construct(
34  private readonly MailerInterface $mailer,
35  private RawMessage $message,
36  private ?Envelope $envelope = null,
37  ) {}
38 
39  public function ‪getMessage(): RawMessage
40  {
41  return $this->message;
42  }
43 
44  public function ‪setMessage(RawMessage $message): void
45  {
46  $this->message = $message;
47  }
48 
49  public function ‪getEnvelope(): ?Envelope
50  {
51  return $this->envelope;
52  }
53 
54  public function ‪setEnvelope(?Envelope $envelope = null): void
55  {
56  $this->envelope = $envelope;
57  }
58 
59  public function ‪getMailer(): MailerInterface
60  {
61  return $this->mailer;
62  }
63 }
‪TYPO3\CMS\Core\Mail\Event\BeforeMailerSentMessageEvent\setMessage
‪setMessage(RawMessage $message)
Definition: BeforeMailerSentMessageEvent.php:44
‪TYPO3\CMS\Core\Mail\Event\BeforeMailerSentMessageEvent\getMailer
‪getMailer()
Definition: BeforeMailerSentMessageEvent.php:59
‪TYPO3\CMS\Core\Mail\Event
Definition: AfterMailerInitializationEvent.php:18
‪TYPO3\CMS\Core\Mail\Event\BeforeMailerSentMessageEvent\getMessage
‪getMessage()
Definition: BeforeMailerSentMessageEvent.php:39
‪TYPO3\CMS\Core\Mail\Event\BeforeMailerSentMessageEvent
Definition: BeforeMailerSentMessageEvent.php:32
‪TYPO3\CMS\Core\Mail\Event\BeforeMailerSentMessageEvent\__construct
‪__construct(private readonly MailerInterface $mailer, private RawMessage $message, private ?Envelope $envelope=null,)
Definition: BeforeMailerSentMessageEvent.php:33
‪TYPO3\CMS\Core\Mail\Event\BeforeMailerSentMessageEvent\getEnvelope
‪getEnvelope()
Definition: BeforeMailerSentMessageEvent.php:49
‪TYPO3\CMS\Core\Mail\Event\BeforeMailerSentMessageEvent\setEnvelope
‪setEnvelope(?Envelope $envelope=null)
Definition: BeforeMailerSentMessageEvent.php:54