| 1 | <?php |
||
| 8 | class Binary implements Body |
||
| 9 | { |
||
| 10 | private |
||
| 11 | $content; |
||
| 12 | |||
| 13 | 7 | public function __construct($content) |
|
| 17 | |||
| 18 | 4 | public function inOriginalFormat() |
|
| 19 | { |
||
| 20 | 4 | return $this->content; |
|
| 21 | } |
||
| 22 | |||
| 23 | 5 | public function asTransported() |
|
| 24 | { |
||
| 25 | 5 | return $this->content; |
|
| 26 | } |
||
| 27 | |||
| 28 | 6 | public function getContentType() |
|
| 32 | |||
| 33 | 1 | public function __toString() |
|
| 40 | |||
| 41 | 7 | public function changeContent($content) |
|
| 45 | } |
||
| 46 |