Interface Brightzone\GremlinDriver\Serializers\SerializerInterface

Implemented byBrightzone\GremlinDriver\Serializers\Json

Gremlin-server PHP Interface for Serializer classes Builds and parses message body for Messages class

Public Methods

Hide inherited methods

MethodDescriptionDefined By
getMimeType() Get this serializer's value This will be deprecated with TP3 Gremlin-server Brightzone\GremlinDriver\Serializers\SerializerInterface
getName() Get this serializer's Name Brightzone\GremlinDriver\Serializers\SerializerInterface
serialize() Serializes the data Brightzone\GremlinDriver\Serializers\SerializerInterface
unserialize() Unserializes the data Brightzone\GremlinDriver\Serializers\SerializerInterface

Method Details

getMimeType() public abstract method

Get this serializer's value This will be deprecated with TP3 Gremlin-server

public abstract string getMimeType ( )
return string

Name of serializer

getName() public abstract method

Get this serializer's Name

public abstract string getName ( )
return string

Name of serializer

serialize() public abstract method

Serializes the data

public abstract int serialize ( &$data )
$data
return int

Length of generated string

unserialize() public abstract method

Unserializes the data

public abstract array unserialize ( $data )
$data array

Data to be unserialized

return array

Unserialized message