Completed
Push — master ( d82d84...28a6d6 )
by Yann
03:27
created

Delivery::getAttachments()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 0
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Yokai\MessengerBundle;
4
use Symfony\Component\HttpFoundation\File\File;
5
6
/**
7
 * @author Yann Eugoné <[email protected]>
8
 */
9
class Delivery
10
{
11
    /**
12
     * @var string
13
     */
14
    private $message;
15
16
    /**
17
     * @var mixed
18
     */
19
    private $recipient;
20
21
    /**
22
     * @var array
23
     */
24
    private $options;
25
26
    /**
27
     * @var string
28
     */
29
    private $subject;
30
31
    /**
32
     * @var string
33
     */
34
    private $body;
35
36
    /**
37
     * @var array
38
     */
39
    private $parameters;
40
41
    /**
42
     * @var array
43
     */
44
    private $attachments;
45
46
    /**
47
     * @param string $message
48 7
     * @param mixed  $recipient
49
     * @param array  $options
50 7
     * @param string $subject
51 7
     * @param string $body
52 7
     * @param array  $parameters
53 7
     * @param File[] $attachments
54 7
     */
55 7
    public function __construct(
56 7
        $message,
57
        $recipient,
58
        array $options,
59
        $subject,
60
        $body,
61 2
        array $parameters,
62
        array $attachments
63 2
    ) {
64
        $this->message = $message;
65
        $this->recipient = $recipient;
66
        $this->options = $options;
67
        $this->subject = $subject;
68
        $this->body = $body;
69 2
        $this->parameters = $parameters;
70
        $this->attachments = $attachments;
71 2
    }
72
73
    /**
74
     * @return string
75
     */
76
    public function getMessage()
77 3
    {
78
        return $this->message;
79 3
    }
80
81
    /**
82
     * @return mixed
83
     */
84
    public function getRecipient()
85 4
    {
86
        return $this->recipient;
87 4
    }
88
89
    /**
90
     * @return array
91
     */
92
    public function getOptions()
93 3
    {
94
        return $this->options;
95 3
    }
96
97
    /**
98
     * @return string
99
     */
100
    public function getSubject()
101 2
    {
102
        return $this->subject;
103 2
    }
104
105
    /**
106
     * @return string
107
     */
108
    public function getBody()
109
    {
110
        return $this->body;
111
    }
112
113
    /**
114
     * @return array
115
     */
116
    public function getParameters()
117
    {
118
        return $this->parameters;
119
    }
120
121
    /**
122
     * @return File[]
123
     */
124
    public function getAttachments()
125
    {
126
        return $this->attachments;
127
    }
128
}
129