public static function getEmulatorInstance($scheme, $path, $context)
    {
        if (!isset(static::$emulators[$scheme])) {
            throw new \InvalidArgumentException('No emulator found for scheme \'' . $scheme . '\'');
        }
        $emulator = static::$emulators[$scheme];

        return new $emulator($path, $context);
    }
public static function getEmulatorInstance($scheme, $path, $context)
    {
        if (!isset(static::$emulators[$scheme])) {
            throw new \InvalidArgumentException('No emulator found for scheme \'' . $scheme . '\'');
        }
        $emulator = static::$emulators[$scheme];

        return new $emulator($path, $context);
    }
public static function getEmulatorInstance ( $ scheme , $ path , $ context ) { if ( ! isset ( static :: $ emulators [ $ scheme ] ) ) { throw new \ InvalidArgumentException ( 'No emulator found for scheme \'' . $ scheme . '\'' ) ; } $ emulator = static :: $ emulators [ $ scheme ] ; return new $ emulator ( $ path , $ context ) ; }
Get an emulator instance.

@param string $scheme The scheme to get an emulator for.
@param string $path The path of the stream.
@param resource $context The stream resource.
@return \CvoTechnologies\StreamEmulation\Emulator\Emulator The emulator instance.
Get an emulator instance .