pock

CallbackSerializerAdapter
in package
implements SerializerInterface

Class CallbackSerializerAdapter

Tags
category

CallbackSerializerAdapter

Interfaces, Classes, Traits and Enums

SerializerInterface
Interface SerializerInterface

Table of Contents

__construct()  : mixed
CallbackSerializerAdapter constructor.
serialize()  : string
Serialize item

Methods

__construct()

CallbackSerializerAdapter constructor.

public __construct(callable $callback) : mixed
Parameters
$callback : callable
Return values
mixed

serialize()

Serialize item

public serialize(mixed $data) : string
Parameters
$data : mixed
Tags
inheritDoc
Return values
string

Search results