Completed
Push — master ( 6ffc3f...4609e3 )
by Antonio
51:14 queued 46:44
created

MailMessageFormat   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 2
dl 0
loc 21
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getText() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the 2amigos/yii2-qrcode-component project.
5
 *
6
 * (c) 2amigOS! <http://2amigos.us/>
7
 *
8
 * For the full copyright and license information, please view
9
 * the LICENSE file that was distributed with this source code.
10
 */
11
12
namespace Da\QrCode\Format;
13
14
use Da\QrCode\Traits\EmailTrait;
15
16
/**
17
 * Class MailMessage formats a string to properly create a NNTMail QrCode
18
 *
19
 * @author Antonio Ramirez <[email protected]>
20
 * @link http://www.ramirezcobos.com/
21
 * @link http://www.2amigos.us/
22
 * @package Da\QrCode\Format
23
 */
24
class MailMessageFormat extends AbstractFormat
25
{
26
    use EmailTrait;
27
28
    /**
29
     * @var string the subject
30
     */
31
    public $subject;
32
    /**
33
     * @var string the body of the mail message
34
     */
35
    public $body;
36
37
    /**
38
     * @inheritdoc
39
     */
40
    public function getText()
41
    {
42
        return "MATMSG:TO:{$this->email};SUB:{$this->subject};BODY:{$this->body};;";
43
    }
44
}
45