1 <?php
2
3 /*
4 * This file is part of the ICanBoogie package.
5 *
6 * (c) Olivier Laviale <olivier.laviale@gmail.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12 namespace ICanBoogie\Mailer;
13
14 class ContentTypeHeader
15 {
16 public $type = 'text/plain';
17 public $charset = 'UTF-8';
18
19 static public function from()
20 {
21 return new static;
22 }
23
24 public function __toString()
25 {
26 return "{$this->type}; charset={$this->charset}";
27 }
28 }