Class PhpCode

Summary

Fully Qualified Name: Laminas\Serializer\Adapter\PhpCode
Extends: AbstractAdapter

Description

Methods

Name Description Defined By
__construct() Constructor AbstractAdapter
getOptions() Get adapter options AbstractAdapter
serialize() Serialize PHP using var_export PhpCode
setOptions() Set adapter options AbstractAdapter
unserialize() Deserialize PHP string PhpCode

Method Details

__construct()

Constructor

Parameter Name Type Description
$options array|\Traversable|\AdapterOptions

Returns:

getOptions()

Get adapter options

Returns: \AdapterOptions

serialize()

Serialize PHP using var_export

Parameter Name Type Description
$value mixed

Returns: string

setOptions()

Set adapter options

Parameter Name Type Description
$options array|\Traversable|\AdapterOptions

Returns: \AbstractAdapter

unserialize()

Deserialize PHP string

Warning: this uses eval(), and should likely be avoided.

Parameter Name Type Description
$code string

Returns: mixed

Top