1 | <?php |
||
8 | class PropertyMap |
||
9 | { |
||
10 | /** |
||
11 | * @var MemberGetterInterface |
||
12 | */ |
||
13 | private $sourceGetter; |
||
14 | /** |
||
15 | * @var MemberSetterInterface |
||
16 | */ |
||
17 | private $destinationSetter; |
||
18 | /** |
||
19 | * @var ValueConverterInterface |
||
20 | */ |
||
21 | private $valueConverter = null; |
||
22 | /** |
||
23 | * @var bool |
||
24 | */ |
||
25 | private $isIgnored = false; |
||
26 | /** |
||
27 | * @var mixed |
||
28 | */ |
||
29 | private $nullSubtitute = null; |
||
30 | |||
31 | public function __construct(MemberSetterInterface $setter, MemberGetterInterface $getter = null) |
||
36 | |||
37 | public function getMemberName() |
||
41 | |||
42 | public function getDestinationSetter() |
||
46 | |||
47 | public function getSourceGetter() |
||
51 | |||
52 | public function setSourceGetter(MemberGetterInterface $sourceGetter) |
||
56 | |||
57 | public function getValueConverter() |
||
61 | |||
62 | public function setValueConverter(ValueConverterInterface $valueConverter) |
||
66 | |||
67 | public function hasValueConverter() |
||
71 | |||
72 | public function getNullSubtitute() |
||
76 | |||
77 | public function setNullSubtitute($nullSubtitute) |
||
81 | |||
82 | public function ignore() |
||
86 | |||
87 | public function isIgnored() |
||
91 | |||
92 | public function isMapped() |
||
96 | } |
||
97 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.