Email   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 63
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
eloc 10
c 2
b 0
f 1
dl 0
loc 63
rs 10
wmc 8

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getFrom() 0 2 1
A setMergeTags() 0 3 1
A getBody() 0 3 1
A getTos() 0 3 1
A getSubject() 0 3 1
A setBody() 0 3 1
A getMergeTags() 0 3 1
A getCustomArgs() 0 2 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Nip\Mail\Tests\Fixtures\Models\Emails;
6
7
use Nip\Mail\Models\Mailable\RecordTrait;
8
use Nip\Records\Record;
9
10
/**
11
 * Class Email.
12
 */
13
class Email extends Record
14
{
15
    use RecordTrait;
16
17
    protected $body = '';
18
    protected $mergeTags = [];
19
20
    /**
21
     * {@inheritDoc}
22
     */
23
    public function getFrom()
24
    {
25
        // TODO: Implement getFrom() method.
26
    }
27
28
    /**
29
     * {@inheritDoc}
30
     */
31
    public function getSubject(): ?string
32
    {
33
        return '';
34
    }
35
36
    /**
37
     * {@inheritDoc}
38
     */
39
    public function getBody()
40
    {
41
        return $this->body;
42
    }
43
44
    public function setBody(string $body)
45
    {
46
        $this->body = $body;
47
    }
48
49
    /**
50
     * {@inheritDoc}
51
     */
52
    public function getMergeTags()
53
    {
54
        return $this->mergeTags;
55
    }
56
57
    public function setMergeTags(array $mergeTags)
58
    {
59
        $this->mergeTags = $mergeTags;
60
    }
61
62
    /**
63
     * {@inheritDoc}
64
     */
65
    protected function getCustomArgs()
66
    {
67
        // TODO: Implement getCustomArgs() method.
68
    }
69
70
    /**
71
     * {@inheritDoc}
72
     */
73
    public function getTos()
74
    {
75
        return explode(',', $this->get('to'));
76
    }
77
}
78