SerializableFieldsTrait
Provides common serialization functionality to fields
Tags
Table of Contents
- __construct() : mixed
- __serialize() : array<string|int, mixed>
- __unserialize() : void
- getBytes() : string
- Returns the bytes that comprise the fields
- serialize() : string
- Returns a string representation of object
- unserialize() : void
- Constructs the object from a serialized string representation
Methods
__construct()
public
abstract __construct(string $bytes) : mixed
Parameters
- $bytes : string
-
The bytes that comprise the fields
Return values
mixed —__serialize()
public
__serialize() : array<string|int, mixed>
Return values
array<string|int, mixed> —__unserialize()
public
__unserialize(array<string|int, mixed> $data) : void
Parameters
- $data : array<string|int, mixed>
Return values
void —getBytes()
Returns the bytes that comprise the fields
public
abstract getBytes() : string
Return values
string —serialize()
Returns a string representation of object
public
serialize() : string
Return values
string —unserialize()
Constructs the object from a serialized string representation
public
unserialize(string $serialized) : void
Parameters
- $serialized : string
-
The serialized string representation of the object