| Total Complexity | 5 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class Httpful { |
||
| 6 | const VERSION = '0.2.20'; |
||
| 7 | |||
| 8 | private static $mimeRegistrar = array(); |
||
| 9 | private static $default = null; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @param string $mimeType |
||
| 13 | * @param \Httpful\Handlers\MimeHandlerAdapter $handler |
||
| 14 | */ |
||
| 15 | public static function register($mimeType, \Httpful\Handlers\MimeHandlerAdapter $handler) |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param string $mimeType defaults to MimeHandlerAdapter |
||
| 22 | * @return \Httpful\Handlers\MimeHandlerAdapter |
||
| 23 | */ |
||
| 24 | public static function get($mimeType = null) |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Does this particular Mime Type have a parser registered |
||
| 39 | * for it? |
||
| 40 | * @param string $mimeType |
||
| 41 | * @return bool |
||
| 42 | */ |
||
| 43 | public static function hasParserRegistered($mimeType) |
||
| 48 |