Total Complexity | 4 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
18 | class ImportedMessage extends \yii\swiftmailer\Message |
||
19 | { |
||
20 | /** |
||
21 | * @var Swift_Message Swift message instance. |
||
22 | */ |
||
23 | private $_swiftMessage; |
||
24 | |||
25 | /** |
||
26 | * @inheritdoc |
||
27 | * @param Swift_Message $message |
||
28 | */ |
||
29 | 10 | public function __construct(Swift_Message $message, array $config = []) |
|
30 | { |
||
31 | 10 | $this->_swiftMessage = $message; |
|
32 | 10 | parent::__construct($config); |
|
33 | 10 | } |
|
34 | |||
35 | /** |
||
36 | * @inheritdoc |
||
37 | */ |
||
38 | 8 | public function getSwiftMessage() |
|
41 | } |
||
42 | |||
43 | /** |
||
44 | * @inheritdoc |
||
45 | */ |
||
46 | 1 | public function setSignature($signature) |
|
47 | { |
||
48 | 1 | throw new NotSupportedException(); |
|
49 | } |
||
50 | |||
51 | /** |
||
52 | * @inheritdoc |
||
53 | */ |
||
54 | 1 | public function addSignature($signature) |
|
57 | } |
||
58 | } |
||
59 |