ModuleOptions::getXMailer()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * ZfMailer
4
 *
5
 * @author     Daniel Wolkenhauer <[email protected]>
6
 * @copyright  Copyright (c) 1997-2019 Daniel Wolkenhauer
7
 * @link       http://dw-labs.de/zfmailer
8
 * @version    3.0.0
9
 */
10
11
namespace ZfMailer\Options;
12
13
use Zend\Stdlib\AbstractOptions;
14
15
/**
16
* ModuleOptions
17
* Einstellungen für ZfMailer
18
* 
19
* @package ZfMailer
20
* @subpackage Options
21
*/
22
class ModuleOptions extends AbstractOptions
23
{
24
25
  /**
26
   * Turn off strict options mode
27
   */
28
  protected $__strictMode__ = false;
29
30
  /**
31
   * @var string Smarthost, über den E-Mails gesendet werden
32
   */
33
  protected $smart_host = array(
34
    'server_name' => 'mx.mail-domain.com',
35
    'server_port' => 25,
36
    'username'    => 'username',
37
    'password'    => 'password'
38
  );
39
40
  /**
41
   * @var string Zeichensatz für E-Mails
42
   */
43
  protected $encoding = 'UTF-8';
44
45
  /**
46
   * @var string Absender der E-Mail
47
   */
48
  protected $default_from = '';
49
50
  /**
51
   * @var string E-Mailadresse für NDRs
52
   */
53
  protected $return_path = '';
54
55
  /**
56
   * @var string E-Mailadresse für Antworten
57
   */
58
  protected $reply_to = '';
59
60
  /**
61
   * @var string Kennung des Mailers
62
   */
63
  protected $x_mailer = 'ZfMailer 3.0.0';
64
65
  /**
66
   * @var string Name des Unternehmens
67
   */
68
  protected $organization = '';
69
70
  /**
71
   * Setter für smart_host
72
   * @param string $smart_host Smarthost
73
   */
74 1
  public function setSmartHost($smart_host)
75
  {
76 1
    $this->smart_host = $smart_host;
77 1
    return $this;
78
  }
79
80
  /**
81
   * Getter für smart_host
82
   * @return string Smarthost
83
   */
84 2
  public function getSmartHost()
85
  {
86 2
    return $this->smart_host;
87
  }
88
89
  /**
90
   * Setter für Encoding
91
   * @param string $encoding Zeichensatz
92
   */
93 1
  public function setEncoding($encoding)
94
  {
95 1
    $this->encoding = $encoding;
96 1
    return $this;
97
  }
98
99
  /**
100
   * Getter für Encoding
101
   * @return string Zeichensatz
102
   */
103 2
  public function getEncoding()
104
  {
105 2
    return $this->encoding;
106
  }
107
108
  /**
109
   * Setter für default_from
110
   * @param string $default_from Absender der E-Mail
111
   */
112 1
  public function setDefaultFrom($default_from)
113
  {
114 1
    $this->default_from = $default_from;
115 1
    return $this;
116
  }
117
118
  /**
119
   * Getter für default_from
120
   * @return string Absender der E-Mail
121
   */
122 2
  public function getDefaultFrom()
123
  {
124 2
    return $this->default_from;
125
  }
126
127
  /**
128
   * Setter für return_path
129
   * @param string $return_path E-Mailadresse für NDRs
130
   */
131 1
  public function setReturnPath($return_path)
132
  {
133 1
    $this->return_path = $return_path;
134 1
    return $this;
135
  }
136
137
  /**
138
   * Getter für return_path
139
   * @return string E-Mailadresse für NDRs
140
   */
141 2
  public function getReturnPath()
142
  {
143 2
    return $this->return_path;
144
  }
145
146
  /**
147
   * Setter für reply_to
148
   * @param string $reply_to E-Mailadresse für Antworten
149
   */
150 1
  public function setReplyTo($reply_to)
151
  {
152 1
    $this->reply_to = $reply_to;
153 1
    return $this;
154
  }
155
156
  /**
157
   * Getter für reply_to
158
   * @return string E-Mailadresse für Antworten
159
   */
160 2
  public function getReplyTo()
161
  {
162 2
    return $this->reply_to;
163
  }
164
165
  /**
166
   * Setter für x_mailer
167
   * @param string $x_mailer individuelle Kennung des Mailers
168
   */
169 1
  public function setXMailer($x_mailer)
170
  {
171 1
    $this->x_mailer = $x_mailer;
172 1
    return $this;
173
  }
174
175
  /**
176
   * Getter für x_mailer
177
   * @return string individuelle Kennung des Mailers
178
   */
179 2
  public function getXMailer()
180
  {
181 2
    return $this->x_mailer;
182
  }
183
184
  /**
185
   * Setter für organization
186
   * @param string $organization Name des Unternehmens
187
   */
188 1
  public function setOrganization($organization)
189
  {
190 1
    $this->organization = $organization;
191 1
    return $this;
192
  }
193
194
  /**
195
   * Getter für organization
196
   * @return string Name des Unternehmens
197
   */
198 2
  public function getOrganization()
199
  {
200 2
    return $this->organization;
201
  }
202
203
}
204