| 1 | <?php |
||
| 16 | class Binary implements BinaryInterface |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | protected $content; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $mimeType; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | protected $format; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param string $content |
||
| 35 | * @param string $mimeType |
||
| 36 | * @param string $format |
||
| 37 | */ |
||
| 38 | public function __construct($content, $mimeType, $format = null) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return string |
||
| 47 | */ |
||
| 48 | public function getContent() |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return string |
||
| 55 | */ |
||
| 56 | public function getMimeType() |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @return string |
||
| 63 | */ |
||
| 64 | public function getFormat() |
||
| 68 | } |
||
| 69 |