Hoa central
Text.php
Go to the documentation of this file.
1 <?php
2 
37 namespace Hoa\Mail\Content;
38 
47 class Text extends Content
48 {
54  protected $_content = null;
55 
56 
57 
64  public function __construct($content = null)
65  {
66  parent::__construct();
67  $this['content-transfer-encoding'] = 'quoted-printable';
68  $this['content-type'] = 'text/plain; charset=utf-8';
69  $this->append($content);
70 
71  return;
72  }
73 
80  public function prepend($content)
81  {
82  $this->_content = $content . $this->_content;
83 
84  return $this;
85  }
86 
93  public function append($content)
94  {
95  $this->_content .= $content;
96 
97  return $this;
98  }
99 
105  public function get()
106  {
107  return $this->_content;
108  }
109 
115  protected function _getContent()
116  {
117  return Encoder\QuotedPrintable::encode($this->get());
118  }
119 }
__construct($content=null)
Definition: Text.php:64
prepend($content)
Definition: Text.php:80
append($content)
Definition: Text.php:93
static encode($string, $isHeaderValue=false)
$content
Definition: Hoa.php:119