You are here

interface ExtensionGuesserInterface in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/File/MimeType/ExtensionGuesserInterface.php \Symfony\Component\HttpFoundation\File\MimeType\ExtensionGuesserInterface

Guesses the file extension corresponding to a given mime type.

Hierarchy

Expanded class hierarchy of ExtensionGuesserInterface

All classes that implement ExtensionGuesserInterface

File

vendor/symfony/http-foundation/File/MimeType/ExtensionGuesserInterface.php, line 17

Namespace

Symfony\Component\HttpFoundation\File\MimeType
View source
interface ExtensionGuesserInterface {

  /**
   * Makes a best guess for a file extension, given a mime type.
   *
   * @param string $mimeType The mime type
   *
   * @return string The guessed extension or NULL, if none could be guessed
   */
  public function guess($mimeType);

}

Members

Namesort descending Modifiers Type Description Overrides
ExtensionGuesserInterface::guess public function Makes a best guess for a file extension, given a mime type. 2