| 1 | <?php |
||
| 27 | class MimeType extends StringObject |
||
| 28 | { |
||
| 29 | /** |
||
| 30 | * @param string $stringData |
||
| 31 | * |
||
| 32 | * @throws InvalidArgumentException If given string is not really a string |
||
| 33 | * @throws RuntimeExcpetion If given string is in incorrect format |
||
| 34 | */ |
||
| 35 | public function __construct($stringData) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Creates a new instance from given MimeType object |
||
| 50 | * |
||
| 51 | * @param MimeType $mimeType |
||
| 52 | * |
||
| 53 | * @return MimeType |
||
| 54 | */ |
||
| 55 | public static function fromMimeType(MimeType $mimeType) |
||
| 61 | } |
||
| 62 |