1 | <?php declare(strict_types=1); |
||
13 | * Body Part |
||
14 | * |
||
15 | * For all models that do have a code body |
||
16 | * |
||
17 | * @author Thomas Gossmann |
||
18 | */ |
||
19 | trait BodyPart { |
||
20 | |||
21 | /** @var string */ |
||
22 | private string $body = ''; |
||
|
|||
23 | |||
24 | 2 | /** |
|
25 | 2 | * Sets the body for this |
|
26 | * |
||
27 | 2 | * @param string $body |
|
28 | * |
||
29 | * @return $this |
||
30 | */ |
||
31 | public function setBody(string $body): self { |
||
32 | $this->body = $body; |
||
33 | |||
34 | return $this; |
||
35 | 17 | } |
|
36 | 17 | ||
37 | /** |
||
38 | * Returns the body |
||
39 | * |
||
46 |