Beta version

class NodeSourceJsonSerializer extends AbstractJsonSerializer

Json Serialization handler for NodeSource.

Methods

string
serialize(mixed $obj)

Serializes data.

array
toArray(NodesSources $nodeSource)

Create a simple associative array with an entity.

mixed
deserialize(string $string)

Deserializes a json file into a readable array of datas.

deserializeWithNodeType(string $string, NodeType $type)

[email protected]}

Details

string serialize(mixed $obj)

Serializes data.

Parameters

mixed $obj

Return Value

string

at line 50
array toArray(NodesSources $nodeSource)

Create a simple associative array with an entity.

Parameters

NodesSources $nodeSource

Return Value

array

at line 98
mixed deserialize(string $string)

Deserializes a json file into a readable array of datas.

Parameters

string $string Input to deserialize

Return Value

mixed

at line 115
NodesSources deserializeWithNodeType(string $string, NodeType $type)

[email protected]}

Parameters

string $string
NodeType $type

Return Value

NodesSources