class NodeSourceJsonSerializer extends AbstractJsonSerializer (View source)

Json Serialization handler for NodeSource.

Methods

mixed
serialize(mixed $obj)

Serializes data.

array
toArray(NodesSources $nodeSource)

Create a simple associative array with a NodeSource.

array
getSourceFields(NodesSources $nodeSource)

No description

mixed
deserialize(string $string)

Deserializes a json file into a readable array of datas.

deserializeWithNodeType(string $string, NodeType $type)

[email protected]}

Details

mixed serialize(mixed $obj)

Serializes data.

Parameters

mixed $obj

Return Value

mixed

array toArray(NodesSources $nodeSource)

Create a simple associative array with a NodeSource.

Parameters

NodesSources $nodeSource

Return Value

array

protected array getSourceFields(NodesSources $nodeSource)

Parameters

NodesSources $nodeSource

Return Value

array

mixed deserialize(string $string)

Deserializes a json file into a readable array of datas.

Parameters

string $string Input to deserialize

Return Value

mixed

NodesSources deserializeWithNodeType(string $string, NodeType $type)

[email protected]}

Parameters

string $string
NodeType $type

Return Value

NodesSources