Zippy API
Class

Alchemy\Zippy\Adapter\AbstractBinaryAdapter

abstract class AbstractBinaryAdapter extends AbstractAdapter implements BinaryAdapterInterface

Methods

__construct(ParserInterface $parser, ResourceManager $manager, ProcessBuilderFactoryInterface $inflator, ProcessBuilderFactoryInterface $deflator = null)

Constructor

ArchiveInterface open(String $path)

from AbstractAdapter
ParserInterface getParser()

AbstractBinaryAdapter setParser(ParserInterface $parser)

ProcessBuilderFactoryInterface getDeflator()

ProcessBuilderFactoryInterface getInflator()

AbstractBinaryAdapter setDeflator(ProcessBuilderFactoryInterface $processBuilder)

AbstractBinaryAdapter setInflator(ProcessBuilderFactoryInterface $processBuilder)

Sets the inflator process builder

static AbstractBinaryAdapter newInstance(ResourceManager $manager, $inflatorBinaryName = null, $deflatorBinaryName = null)

Returns a new instance of the invoked adapter

Details

at line 58
public __construct(ParserInterface $parser, ResourceManager $manager, ProcessBuilderFactoryInterface $inflator, ProcessBuilderFactoryInterface $deflator = null)

Constructor

Parameters

ParserInterface $parser An output parser
ResourceManager $manager A resource manager
ProcessBuilderFactoryInterface $inflator A process builder factory for the inflator binary
ProcessBuilderFactoryInterface $deflator A process builder factory for the deflator binary

in AbstractAdapter at line 31
public ArchiveInterface open(String $path)

Parameters

String $path The path to the archive

Return Value

ArchiveInterface

at line 69
public ParserInterface getParser()

Return Value

ParserInterface

at line 77
public AbstractBinaryAdapter setParser(ParserInterface $parser)

Parameters

ParserInterface $parser The parser to use

Return Value

AbstractBinaryAdapter

at line 87
public ProcessBuilderFactoryInterface getDeflator()

at line 95
public ProcessBuilderFactoryInterface getInflator()

at line 103
public AbstractBinaryAdapter setDeflator(ProcessBuilderFactoryInterface $processBuilder)

Parameters

ProcessBuilderFactoryInterface $processBuilder The parser to use

Return Value

AbstractBinaryAdapter

at line 110
public AbstractBinaryAdapter setInflator(ProcessBuilderFactoryInterface $processBuilder)

Sets the inflator process builder

Parameters

ProcessBuilderFactoryInterface $processBuilder The parser to use

Return Value

AbstractBinaryAdapter

at line 127
static public AbstractBinaryAdapter newInstance(ResourceManager $manager, $inflatorBinaryName = null, $deflatorBinaryName = null)

Returns a new instance of the invoked adapter

Parameters

ResourceManager $manager
$inflatorBinaryName
$deflatorBinaryName

Return Value

AbstractBinaryAdapter

Exceptions

RuntimeException In case object could not be instanciated