PHP Interface Bravo3\Orm\Serialisers\SerialiserInterface

Afficher le fichier Open project: bravo3/orm Interface Usage Examples

Méthodes publiques

Méthode Description
deserialise ( Entity $metadata, SerialisedData $data, object $entity ) Deserialise the entity
getSerialiserCode ( ) : string Get a unique code for this serialiser, used as the header for the stored object
serialise ( Entity $metadata, object $entity ) : SerialisedData Serialise the entity

Method Details

deserialise() public méthode

Deserialise the entity
public deserialise ( Entity $metadata, SerialisedData $data, object $entity )
$metadata Bravo3\Orm\Mappers\Metadata\Entity Metadata object to match the entity
$data Bravo3\Orm\Drivers\Common\SerialisedData Data to deserialise
$entity object Entity to hydrate

getSerialiserCode() public méthode

Get a unique code for this serialiser, used as the header for the stored object
public getSerialiserCode ( ) : string
Résultat string

serialise() public méthode

Serialise the entity
public serialise ( Entity $metadata, object $entity ) : SerialisedData
$metadata Bravo3\Orm\Mappers\Metadata\Entity
$entity object
Résultat Bravo3\Orm\Drivers\Common\SerialisedData