Total Complexity | 3 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
7 | class Message |
||
8 | { |
||
9 | public const DEFAULT_CHARSET = 'utf-8'; |
||
10 | |||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | private $body; |
||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | private $charset; |
||
20 | |||
21 | 4 | public function __construct(string $body, string $charset = self::DEFAULT_CHARSET) |
|
22 | { |
||
23 | 4 | $this->body = $body; |
|
24 | 4 | $this->charset = $charset; |
|
25 | } |
||
26 | |||
27 | /** |
||
28 | * @return string |
||
29 | */ |
||
30 | 4 | public function getBody(): string |
|
33 | } |
||
34 | |||
35 | /** |
||
36 | * @return string |
||
37 | */ |
||
38 | 4 | public function getCharset(): string |
|
41 | } |
||
42 | } |
||
43 |