Abstract compression adapter

 Methods

Class constructor

__construct(null | array | \Traversable $options) 

Parameters

$options

nullarray\Traversable

(Optional) Options to set

Compresses $value with the defined settings

compress(string $value) : string
Inherited

inherited_from \Zend\Filter\Compress\CompressionAlgorithmInterface::compress()

Parameters

$value

string

Data to compress

Returns

stringThe compressed data

Decompresses $value with the defined settings

decompress(string $value) : string
Inherited

inherited_from \Zend\Filter\Compress\CompressionAlgorithmInterface::decompress()

Parameters

$value

string

Data to decompress

Returns

stringThe decompressed data

Returns one or all set options

getOptions(string $option) : mixed

Parameters

$option

string

(Optional) Option to return

Returns

mixed

Sets all or one option

setOptions(array $options) : \Zend\Filter\Compress\AbstractCompressionAlgorithm

Parameters

$options

array

Returns

Return the adapter name

toString() : string
Inherited

inherited_from \Zend\Filter\Compress\CompressionAlgorithmInterface::toString()

Returns

string

 Properties

 

$options

$options : array