Copied!

DataMapperInterface

DataMapperInterface.php : 15

Data Mapper provide interface to bidirectional transfer of data between a Struct objects and a Data objects.

Methods

publicmap()

DataMapperInterface.php : 24

Maps Struct object to Data object.

public map(ValueObject $value) : mixed

Parameters

Name Type Default value Description
$value ValueObject - -

publicreverseMap()

DataMapperInterface.php : 33

Maps Data object to Struct object.

public reverseMap(mixed $data) : mixed

Parameters

Name Type Default value Description
$data mixed - -