| 1 | <?php |
||
| 4 | class Tool |
||
| 5 | { |
||
| 6 | |||
| 7 | /** |
||
| 8 | * Parse a content-type header to a representation name |
||
| 9 | * |
||
| 10 | * @param string $contentType |
||
| 11 | * @return bool |
||
| 12 | */ |
||
| 13 | public static function parseContentTypeToRepresentation($contentType) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * convert a representation name including version to the |
||
| 28 | * corresponding class |
||
| 29 | * |
||
| 30 | * @param string $inputRepresentation |
||
| 31 | * @return string |
||
| 32 | * @throws \Exception |
||
| 33 | */ |
||
| 34 | public static function parseRepresentationToClass($inputRepresentation) |
||
| 64 | } |
||
| 65 |