1 | <?php |
||
16 | class PropertyMap { |
||
17 | |||
18 | protected $source; |
||
19 | |||
20 | protected $destination; |
||
21 | |||
22 | protected $transform; |
||
23 | |||
24 | protected $reverse; |
||
25 | |||
26 | public function __construct(PropertyDefinition $source, PropertyDefinition $destination, callable $transform = NULL, callable $reverse = NULL) { |
||
35 | |||
36 | /** |
||
37 | * Gets the source property. |
||
38 | * |
||
39 | * @return PropertyDefinition |
||
40 | */ |
||
41 | public function getSource() { |
||
44 | |||
45 | /** |
||
46 | * Gets the destination property. |
||
47 | * |
||
48 | * @return PropertyDefinition |
||
49 | */ |
||
50 | public function getDestination() { |
||
53 | |||
54 | public function getTransform() { |
||
57 | |||
58 | public function getReverse() { |
||
61 | |||
62 | } |
||
63 |