ExtensionGuesserInterface.php 668 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\HttpFoundation\File\MimeType;
  11. /**
  12. * Guesses the file extension corresponding to a given mime type
  13. */
  14. interface ExtensionGuesserInterface
  15. {
  16. /**
  17. * Makes a best guess for a file extension, given a mime type
  18. *
  19. * @param string $mimeType The mime type
  20. * @return string The guessed extension or NULL, if none could be guessed
  21. */
  22. function guess($mimeType);
  23. }