1 | <?php |
||
17 | class UpdateElement extends AbstractDiff |
||
18 | { |
||
19 | /** |
||
20 | * Старое значение |
||
21 | * |
||
22 | * @var mixed |
||
23 | */ |
||
24 | private $sourceValue; |
||
25 | |||
26 | /** |
||
27 | * Новое значение |
||
28 | * |
||
29 | * @var mixed |
||
30 | */ |
||
31 | private $targetValue; |
||
32 | |||
33 | /** |
||
34 | * Элемент который сравнивают |
||
35 | * |
||
36 | * @var ElementInterface |
||
37 | */ |
||
38 | private $sourceElement; |
||
39 | |||
40 | /** |
||
41 | * Элемент с которым сравнивают |
||
42 | * |
||
43 | * @var ElementInterface |
||
44 | */ |
||
45 | private $targetElement; |
||
46 | |||
47 | /** |
||
48 | * UpdateElement constructor. |
||
49 | * |
||
50 | * @param DiffBuilder $diffBuilder |
||
51 | */ |
||
52 | public function __construct(DiffBuilder $diffBuilder) |
||
61 | |||
62 | /** |
||
63 | * Элемент который сравнивают |
||
64 | * |
||
65 | * @return ElementInterface |
||
66 | */ |
||
67 | public function getSourceElement() |
||
71 | |||
72 | /** |
||
73 | * Элемент с которым сравнивают |
||
74 | * |
||
75 | * @return ElementInterface |
||
76 | */ |
||
77 | public function getTargetElement() |
||
81 | |||
82 | |||
83 | /** |
||
84 | * @return mixed |
||
85 | */ |
||
86 | public function getSourceValue() |
||
90 | |||
91 | /** |
||
92 | * @param mixed $sourceValue |
||
93 | * |
||
94 | * @return $this |
||
95 | */ |
||
96 | public function setSourceValue($sourceValue) |
||
102 | |||
103 | /** |
||
104 | * @return mixed |
||
105 | */ |
||
106 | public function getTargetValue() |
||
110 | |||
111 | /** |
||
112 | * @param mixed $targetValue |
||
113 | * |
||
114 | * @return $this |
||
115 | */ |
||
116 | public function setTargetValue($targetValue) |
||
122 | } |
||
123 |