class NodeTypeJsonSerializer extends AbstractJsonSerializer (View source)

Json Serialization handler for NodeType.

Properties

protected $ntfSerializer

Methods

mixed
serialize(mixed $obj)

Serializes data.

__construct()

No description

array
toArray(NodeType $nodeType)

Create a simple associative array with a NodeType.

mixed
deserialize(string $string)

Deserializes a Json into readable datas.

Details

mixed serialize(mixed $obj)

Serializes data.

Parameters

mixed $obj

Return Value

mixed

__construct()

array toArray(NodeType $nodeType)

Create a simple associative array with a NodeType.

Parameters

NodeType $nodeType

Return Value

array

mixed deserialize(string $string)

Deserializes a Json into readable datas.

Parameters

string $string Input to deserialize

Return Value

mixed