package Default
inherited_from \Zend\Serializer\Adapter\AbstractAdapter

 Methods

Constructor

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

Parameters

$options

array\Traversable\Zend\Serializer\Adapter\AdapterOptions

Get options

getOptions() : \Zend\Serializer\Adapter\JsonOptions
inherited_from \Zend\Serializer\Adapter\AbstractAdapter::getOptions()

Returns

\Zend\Serializer\Adapter\JsonOptions

Get adapter options

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

Returns

\Zend\Serializer\Adapter\AdapterOptions

Serialize PHP value to JSON

serialize(mixed $value) : string

Parameters

$value

mixed

Exceptions

\Zend\Serializer\Exception\InvalidArgumentException
\Zend\Serializer\Exception\RuntimeException

Returns

string

Set options

setOptions(array|\Traversable|\Zend\Serializer\Adapter\JsonOptions $options) : \Zend\Serializer\Adapter\Json
inherited_from \Zend\Serializer\Adapter\AbstractAdapter::setOptions()

Parameters

$options

array\Traversable\Zend\Serializer\Adapter\JsonOptions

Returns

\Zend\Serializer\Adapter\Json

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 JSON to PHP value

unserialize(string $json) : mixed

Parameters

$json

string

Exceptions

\Zend\Serializer\Exception\InvalidArgumentException
\Zend\Serializer\Exception\RuntimeException

Returns

mixed

 Properties

 

$options

$options : \Zend\Serializer\Adapter\JsonOptions

Default

null
inherited_from \Zend\Serializer\Adapter\AbstractAdapter::options
 

$options

$options : \Zend\Serializer\Adapter\AdapterOptions

Default

null