Total Complexity | 5 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
12 | class Text extends Base |
||
13 | { |
||
14 | |||
15 | 1 | public function __construct($content = '') |
|
20 | 1 | } |
|
21 | |||
22 | 1 | protected function getBody() |
|
23 | { |
||
24 | 1 | return $this->body; |
|
25 | } |
||
26 | |||
27 | 1 | protected function bodyFields() |
|
30 | } |
||
31 | |||
32 | 1 | protected function validate() |
|
33 | { |
||
34 | 1 | $this->check('content', true); |
|
35 | 1 | } |
|
36 | |||
37 | /** |
||
38 | * append content |
||
39 | * 追加内容 |
||
40 | * |
||
41 | * @param string $content |
||
42 | * |
||
43 | * @return $this |
||
44 | */ |
||
45 | 1 | public function appendContent($content = '') |
|
50 | } |
||
51 | } |