public static function newInstance(
        ExecutableFinder $finder,
        ResourceManager $manager,
        $inflatorBinaryName = null,
        $deflatorBinaryName = null
    ) {
        

        $inflator = $inflatorBinaryName instanceof ProcessBuilderFactoryInterface ? $inflatorBinaryName : self::findABinary($inflatorBinaryName,
            static::getDefaultInflatorBinaryName(), $finder);
        $deflator = $deflatorBinaryName instanceof ProcessBuilderFactoryInterface ? $deflatorBinaryName : self::findABinary($deflatorBinaryName,
            static::getDefaultDeflatorBinaryName(), $finder);
        try {
            $outputParser = new ZipOutputParser(self::$zipDateFormat);
        } catch (\InvalidArgumentException $e) {
            throw new \RuntimeException(sprintf(
                'Failed to get a new instance of %s',
                get_called_class()), $e->getCode(), $e
            );
        }

        if (null === $inflator) {
            throw new \RuntimeException(sprintf('Unable to create the inflator'));
        }

        if (null === $deflator) {
            throw new \RuntimeException(sprintf('Unable to create the deflator'));
        }

        return new static($outputParser, $manager, $inflator, $deflator);
    }
public static function newInstance(
        ExecutableFinder $finder,
        ResourceManager $manager,
        $inflatorBinaryName = null,
        $deflatorBinaryName = null
    ) {
        

        $inflator = $inflatorBinaryName instanceof ProcessBuilderFactoryInterface ? $inflatorBinaryName : self::findABinary($inflatorBinaryName,
            static::getDefaultInflatorBinaryName(), $finder);
        $deflator = $deflatorBinaryName instanceof ProcessBuilderFactoryInterface ? $deflatorBinaryName : self::findABinary($deflatorBinaryName,
            static::getDefaultDeflatorBinaryName(), $finder);
        try {
            $outputParser = new ZipOutputParser(self::$zipDateFormat);
        } catch (\InvalidArgumentException $e) {
            throw new \RuntimeException(sprintf(
                'Failed to get a new instance of %s',
                get_called_class()), $e->getCode(), $e
            );
        }

        if (null === $inflator) {
            throw new \RuntimeException(sprintf('Unable to create the inflator'));
        }

        if (null === $deflator) {
            throw new \RuntimeException(sprintf('Unable to create the deflator'));
        }

        return new static($outputParser, $manager, $inflator, $deflator);
    }
public static function newInstance ( ExecutableFinder $ finder , ResourceManager $ manager , $ inflatorBinaryName = null , $ deflatorBinaryName = null ) { $ inflator = $ inflatorBinaryName instanceof ProcessBuilderFactoryInterface ? $ inflatorBinaryName : self :: findABinary ( $ inflatorBinaryName , static :: getDefaultInflatorBinaryName ( ) , $ finder ) ; $ deflator = $ deflatorBinaryName instanceof ProcessBuilderFactoryInterface ? $ deflatorBinaryName : self :: findABinary ( $ deflatorBinaryName , static :: getDefaultDeflatorBinaryName ( ) , $ finder ) ; try { $ outputParser = new ZipOutputParser ( self :: $ zipDateFormat ) ; } catch ( \ InvalidArgumentException $ e ) { throw new \ RuntimeException ( sprintf ( 'Failed to get a new instance of %s' , get_called_class ( ) ) , $ e -> getCode ( ) , $ e ) ; } if ( null === $ inflator ) { throw new \ RuntimeException ( sprintf ( 'Unable to create the inflator' ) ) ; } if ( null === $ deflator ) { throw new \ RuntimeException ( sprintf ( 'Unable to create the deflator' ) ) ; } return new static ( $ outputParser , $ manager , $ inflator , $ deflator ) ; }
Returns a new instance of the invoked adapter

@param ExecutableFinder $finder
@param ResourceManager  $manager
@param string|null      $inflatorBinaryName The inflator binary name to use
@param string|null      $deflatorBinaryName The deflator binary name to use

@return AbstractBinaryAdapter
Returns a new instance of the invoked adapter