1 | <?php |
||
11 | final class AssociatedCollection implements Change |
||
12 | { |
||
13 | /** |
||
14 | * @var mixed |
||
15 | */ |
||
16 | private $originValue; |
||
17 | |||
18 | /** |
||
19 | * @var mixed |
||
20 | */ |
||
21 | private $newValue; |
||
22 | |||
23 | /** |
||
24 | * @var Property |
||
25 | */ |
||
26 | private $property; |
||
27 | /** |
||
28 | * @var array |
||
29 | */ |
||
30 | private $changes; |
||
31 | |||
32 | /** |
||
33 | * @param Property $property |
||
34 | * @param $originValue |
||
35 | * @param $newValue |
||
36 | * @param array $changes |
||
37 | */ |
||
38 | public function __construct(Property $property, $originValue, $newValue, array $changes) |
||
45 | |||
46 | /** |
||
47 | * @return mixed |
||
48 | */ |
||
49 | public function getOriginValue() |
||
53 | |||
54 | /** |
||
55 | * @return mixed |
||
56 | */ |
||
57 | public function getNewValue() |
||
61 | |||
62 | /** |
||
63 | * @return Property |
||
64 | */ |
||
65 | public function getProperty() |
||
69 | |||
70 | /** |
||
71 | * @return array|NewEntity[] |
||
72 | * |
||
73 | * @api |
||
74 | */ |
||
75 | public function getChangeForNewEntities() |
||
86 | |||
87 | /** |
||
88 | * @return array|RemovedEntity[] |
||
89 | * |
||
90 | * @api |
||
91 | */ |
||
92 | public function getChangesForRemovedEntities() |
||
103 | |||
104 | /** |
||
105 | * @return array|EditedEntity[] |
||
106 | * |
||
107 | * @api |
||
108 | */ |
||
109 | public function getChangesForEditedEntities() |
||
120 | |||
121 | /** |
||
122 | * @param $propertyName |
||
123 | * @return bool |
||
124 | */ |
||
125 | public function isFor($propertyName) |
||
129 | } |
||
130 |