53
53
* @param array<int,PropertyMapping> $allPropertyMappings
54
54
* @param array<int,string> $initializableTargetPropertiesNotInSource
55
55
* @param array<string,true> $targetProxySkippedProperties
56
+ * @param array<int,string> $sourceProperties
56
57
*/
57
58
public function __construct (
58
59
private string $ sourceClass ,
59
60
private string $ targetClass ,
60
61
private string $ providedTargetClass ,
61
62
private bool $ sourceAllowsDynamicProperties ,
62
63
private bool $ targetAllowsDynamicProperties ,
64
+ private array $ sourceProperties ,
63
65
array $ allPropertyMappings ,
64
66
private bool $ instantiable ,
65
67
private bool $ cloneable ,
@@ -111,6 +113,7 @@ public function withTargetProxy(
111
113
providedTargetClass: $ this ->providedTargetClass ,
112
114
sourceAllowsDynamicProperties: $ this ->sourceAllowsDynamicProperties ,
113
115
targetAllowsDynamicProperties: $ this ->targetAllowsDynamicProperties ,
116
+ sourceProperties: $ this ->sourceProperties ,
114
117
allPropertyMappings: $ this ->allPropertyMappings ,
115
118
instantiable: $ this ->instantiable ,
116
119
cloneable: $ this ->cloneable ,
@@ -133,6 +136,7 @@ public function withReasonCannotUseProxy(
133
136
providedTargetClass: $ this ->providedTargetClass ,
134
137
sourceAllowsDynamicProperties: $ this ->sourceAllowsDynamicProperties ,
135
138
targetAllowsDynamicProperties: $ this ->targetAllowsDynamicProperties ,
139
+ sourceProperties: $ this ->sourceProperties ,
136
140
allPropertyMappings: $ this ->allPropertyMappings ,
137
141
instantiable: $ this ->instantiable ,
138
142
cloneable: $ this ->cloneable ,
@@ -284,13 +288,21 @@ public function constructorIsEager(): bool
284
288
return $ this ->constructorIsEager ;
285
289
}
286
290
287
- public function getSourceAllowsDynamicProperties (): bool
291
+ public function sourceAllowsDynamicProperties (): bool
288
292
{
289
293
return $ this ->sourceAllowsDynamicProperties ;
290
294
}
291
295
292
- public function getTargetAllowsDynamicProperties (): bool
296
+ public function targetAllowsDynamicProperties (): bool
293
297
{
294
298
return $ this ->targetAllowsDynamicProperties ;
295
299
}
300
+
301
+ /**
302
+ * @return array<int,string>
303
+ */
304
+ public function getSourceProperties (): array
305
+ {
306
+ return $ this ->sourceProperties ;
307
+ }
296
308
}
0 commit comments