TYPO3  7.6
OpenDKIMHeader.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of SwiftMailer.
5  * (c) 2004-2009 Chris Corbyn
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10 
17 {
23  private $_value;
24 
30  private $_fieldName;
31 
39  public function __construct($name)
40  {
41  $this->_fieldName = $name;
42  }
43 
52  public function getFieldType()
53  {
54  return self::TYPE_TEXT;
55  }
56 
64  public function setFieldBodyModel($model)
65  {
66  $this->setValue($model);
67  }
68 
76  public function getFieldBodyModel()
77  {
78  return $this->getValue();
79  }
80 
86  public function getValue()
87  {
88  return $this->_value;
89  }
90 
96  public function setValue($value)
97  {
98  $this->_value = $value;
99  }
100 
106  public function getFieldBody()
107  {
108  return $this->_value;
109  }
110 
116  public function toString()
117  {
118  return $this->_fieldName.': '.$this->_value;
119  }
120 
126  public function getFieldName()
127  {
128  return $this->_fieldName;
129  }
130 
134  public function setCharset($charset)
135  {
136  }
137 }