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