Fully Qualified Name: | Laminas\Serializer\Adapter\PhpCode |
Extends: | AbstractAdapter |
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 |
Constructor
Parameter Name | Type | Description |
---|---|---|
$options | array|\Traversable|\AdapterOptions |
Returns:
Get adapter options
Returns: \AdapterOptions
Serialize PHP using var_export
Parameter Name | Type | Description |
---|---|---|
$value | mixed |
Returns: string
Set adapter options
Parameter Name | Type | Description |
---|---|---|
$options | array|\Traversable|\AdapterOptions |
Returns: \AbstractAdapter
Deserialize PHP string
Warning: this uses eval(), and should likely be avoided.
Parameter Name | Type | Description |
---|---|---|
$code | string |
Returns: mixed