public function getMimeType($extension)
    {
        if (isset($this->mimeTypes['.'.strtolower($extension)])) {
            return $this->mimeTypes['.'.strtolower($extension)];
        }

        return 'text/plain';
    }
public function getMimeType($extension)
    {
        if (isset($this->mimeTypes['.'.strtolower($extension)])) {
            return $this->mimeTypes['.'.strtolower($extension)];
        }

        return 'text/plain';
    }
public function getMimeType ( $ extension ) { if ( isset ( $ this -> mimeTypes [ '.' . strtolower ( $ extension ) ] ) ) { return $ this -> mimeTypes [ '.' . strtolower ( $ extension ) ] ; } return 'text/plain' ; }
Get the mime type.

@param string $extension

@return string
Get the mime type .