private function getResponseType($contentType)
    {
        $length = strpos($contentType, ';') ?: null;
        $type = $length
            ? substr($contentType, 0, $length)
            : $contentType;

        return strtolower(trim($type));
    }
private function getResponseType($contentType)
    {
        $length = strpos($contentType, ';') ?: null;
        $type = $length
            ? substr($contentType, 0, $length)
            : $contentType;

        return strtolower(trim($type));
    }
private function getResponseType ( $ contentType ) { $ length = strpos ( $ contentType , ';' ) ? : null ; $ type = $ length ? substr ( $ contentType , 0 , $ length ) : $ contentType ; return strtolower ( trim ( $ type ) ) ; }
Get the response type

@param string $contentType

@return string
Get the response type