| 1 | <?php |
||
| 7 | class Binary implements BinaryInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | protected $content; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $mimeType; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $format; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param string $content |
||
| 26 | * @param string $mimeType |
||
| 27 | * @param string $format |
||
| 28 | */ |
||
| 29 | public function __construct($content, $mimeType, $format = null) |
||
| 30 | { |
||
| 31 | $this->content = $content; |
||
| 32 | $this->mimeType = $mimeType; |
||
| 33 | $this->format = $format; |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | public function getContent() |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | public function getMimeType() |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return string |
||
| 54 | */ |
||
| 55 | public function getFormat() |
||
| 59 | } |
||
| 60 |