Email::getTos()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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