Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 3
CRAP
0.00% covered (danger)
0.00%
0 / 5
SendEmailMessage
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 3
12
0.00% covered (danger)
0.00%
0 / 5
 __construct
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 3
 getMessage
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 getEnvelope
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
1<?php
2
3/*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <fabien@symfony.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12namespace Symfony\Component\Mailer\Messenger;
13
14use Symfony\Component\Mailer\Envelope;
15use Symfony\Component\Mime\RawMessage;
16
17/**
18 * @author Fabien Potencier <fabien@symfony.com>
19 */
20class SendEmailMessage
21{
22    private $message;
23    private $envelope;
24
25    public function __construct(RawMessage $message, Envelope $envelope = null)
26    {
27        $this->message = $message;
28        $this->envelope = $envelope;
29    }
30
31    public function getMessage(): RawMessage
32    {
33        return $this->message;
34    }
35
36    public function getEnvelope(): ?Envelope
37    {
38        return $this->envelope;
39    }
40}