public static function register(string $guesser): void
    {
        if (\in_array(MimeTypeGuesserContract::class, \class_implements($guesser), true)) {
            \array_unshift(self::$guessers, $guesser);
        }

        throw new RuntimeException(\sprintf('You guesser [%s] should implement the [\%s].', $guesser, MimeTypeGuesserContract::class));
    }
public static function register(string $guesser): void
    {
        if (\in_array(MimeTypeGuesserContract::class, \class_implements($guesser), true)) {
            \array_unshift(self::$guessers, $guesser);
        }

        throw new RuntimeException(\sprintf('You guesser [%s] should implement the [\%s].', $guesser, MimeTypeGuesserContract::class));
    }
public static function register ( string $ guesser ) : void { if ( \ in_array ( MimeTypeGuesserContract :: class , \ class_implements ( $ guesser ) , true ) ) { \ array_unshift ( self :: $ guessers , $ guesser ) ; } throw new RuntimeException ( \ sprintf ( 'You guesser [%s] should implement the [\%s].' , $ guesser , MimeTypeGuesserContract :: class ) ) ; }
Registers a new mime type guesser.
When guessing, this guesser is preferred over previously registered ones.

@param string $guesser Should implement \Narrowspark\MimeType\Contract\MimeTypeGuesser interface

@return void
Registers a new mime type guesser . When guessing this guesser is preferred over previously registered ones .