vendor/symfony/mailer/Messenger/SendEmailMessage.php line 20

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Symfony package.
  4.  *
  5.  * (c) Fabien Potencier <fabien@symfony.com>
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  */
  10. namespace Symfony\Component\Mailer\Messenger;
  11. use Symfony\Component\Mailer\Envelope;
  12. use Symfony\Component\Mime\RawMessage;
  13. /**
  14.  * @author Fabien Potencier <fabien@symfony.com>
  15.  */
  16. class SendEmailMessage
  17. {
  18.     private $message;
  19.     private $envelope;
  20.     public function __construct(RawMessage $messageEnvelope $envelope null)
  21.     {
  22.         $this->message $message;
  23.         $this->envelope $envelope;
  24.     }
  25.     public function getMessage(): RawMessage
  26.     {
  27.         return $this->message;
  28.     }
  29.     public function getEnvelope(): ?Envelope
  30.     {
  31.         return $this->envelope;
  32.     }
  33. }