package Default
inherited_from \Zend\Serializer\Adapter\AbstractAdapter

 Methods

Constructor

__construct(array|\Traversable|\Zend\Serializer\Adapter\AdapterOptions $options = null
inherited_from \Zend\Serializer\Adapter\AbstractAdapter::__construct()

Parameters

$options

Exceptions

\Zend\Serializer\Exception\ExtensionNotLoadedException If msgpack extension is not present

Constructor

__construct(array|\Traversable|\Zend\Serializer\Adapter\AdapterOptions $options = null
Inherited

Parameters

$options

array\Traversable\Zend\Serializer\Adapter\AdapterOptions

Get adapter options

getOptions() : \Zend\Serializer\Adapter\AdapterOptions
Inherited

Returns

\Zend\Serializer\Adapter\AdapterOptions

Serialize PHP value to msgpack

serialize(mixed $value) : string

Parameters

$value

mixed

Exceptions

\Zend\Serializer\Exception\RuntimeException on msgpack error

Returns

string

Set adapter options

setOptions(array|\Traversable|\Zend\Serializer\Adapter\AdapterOptions $options) : \Zend\Serializer\Adapter\AbstractAdapter
Inherited

Parameters

$options

array\Traversable\Zend\Serializer\Adapter\AdapterOptions

Returns

\Zend\Serializer\Adapter\AbstractAdapter

Deserialize msgpack string to PHP value

unserialize(string $serialized) : mixed

Parameters

$serialized

string

Exceptions

\Zend\Serializer\Exception\RuntimeException on msgpack error

Returns

mixed

 Properties

 

$options

$options : \Zend\Serializer\Adapter\AdapterOptions

Default

null
 

Serialized 0 value

$serialized0 : string

Default

null
Static