public function getMimeTypeFromExtension($extension) {
        return isset($this->extensionToMimeType[$extension]) ? $this->extensionToMimeType[$extension] : null;
    }
public function getMimeTypeFromExtension($extension) {
        return isset($this->extensionToMimeType[$extension]) ? $this->extensionToMimeType[$extension] : null;
    }
public function getMimeTypeFromExtension ( $ extension ) { return isset ( $ this -> extensionToMimeType [ $ extension ] ) ? $ this -> extensionToMimeType [ $ extension ] : null ; }
Look up the mime type of a given extension.

@param string $extension The extension to look up the mime type for
@return string|null
Look up the mime type of a given extension .