public function mapType($ctype)
    {
        if (is_array($ctype)) {
            return array_map([$this, 'mapType'], $ctype);
        }

        foreach ($this->_mimeTypes as $alias => $types) {
            if (in_array($ctype, (array)$types)) {
                return $alias;
            }
        }

        return null;
    }
public function mapType($ctype)
    {
        if (is_array($ctype)) {
            return array_map([$this, 'mapType'], $ctype);
        }

        foreach ($this->_mimeTypes as $alias => $types) {
            if (in_array($ctype, (array)$types)) {
                return $alias;
            }
        }

        return null;
    }
public function mapType ( $ ctype ) { if ( is_array ( $ ctype ) ) { return array_map ( [ $ this , 'mapType' ] , $ ctype ) ; } foreach ( $ this -> _mimeTypes as $ alias => $ types ) { if ( in_array ( $ ctype , ( array ) $ types ) ) { return $ alias ; } } return null ; }
Maps a content-type back to an alias

e.g `mapType('application/pdf'); // returns 'pdf'`

@param string|array $ctype Either a string content type to map, or an array of types.
@return string|array|null Aliases for the types provided.
Maps a content - type back to an alias