public function guess($mimeType)
    {
        foreach ($this->guessers as $guesser) {
            if (null !== $extension = $guesser->guess($mimeType)) {
                return $extension;
            }
        }
    }
public function guess($mimeType)
    {
        foreach ($this->guessers as $guesser) {
            if (null !== $extension = $guesser->guess($mimeType)) {
                return $extension;
            }
        }
    }
public function guess ( $ mimeType ) { foreach ( $ this -> guessers as $ guesser ) { if ( null !== $ extension = $ guesser -> guess ( $ mimeType ) ) { return $ extension ; } } }
Tries to guess the extension.

The mime type is passed to each registered mime type guesser in reverse order
of their registration (last registered is queried first). Once a guesser
returns a value that is not NULL, this method terminates and returns the
value.

@param string $mimeType The mime type

@return string The guessed extension or NULL, if none could be guessed
Tries to guess the extension .