File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed
lib/internal/Magento/Framework/View Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class ScheduledStructure
24
24
*
25
25
* @var array
26
26
*/
27
- private $ propertyMap = [
27
+ private $ serializableProperties = [
28
28
'scheduledStructure ' ,
29
29
'scheduledData ' ,
30
30
'scheduledElements ' ,
@@ -550,7 +550,7 @@ public function flushScheduledStructure()
550
550
public function __toArray ()
551
551
{
552
552
$ result = [];
553
- foreach ($ this ->propertyMap as $ property ) {
553
+ foreach ($ this ->serializableProperties as $ property ) {
554
554
$ result [$ property ] = $ this ->{$ property };
555
555
}
556
556
@@ -566,7 +566,7 @@ public function __toArray()
566
566
*/
567
567
public function populateWithArray (array $ data )
568
568
{
569
- foreach ($ this ->propertyMap as $ property ) {
569
+ foreach ($ this ->serializableProperties as $ property ) {
570
570
$ this ->{$ property } = $ this ->getDataValue ($ property , $ data );
571
571
}
572
572
}
@@ -578,7 +578,8 @@ public function populateWithArray(array $data)
578
578
* @param array $data
579
579
* @return array
580
580
*/
581
- private function getDataValue ($ name , array $ data ) {
581
+ private function getDataValue ($ name , array $ data )
582
+ {
582
583
return isset ($ data [$ name ]) ? $ data [$ name ] : [];
583
584
}
584
585
}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ class Structure
17
17
*
18
18
* @var array
19
19
*/
20
- private $ propertyMap = [
20
+ private $ serializableProperties = [
21
21
'assets ' ,
22
22
'removeAssets ' ,
23
23
'title ' ,
@@ -220,7 +220,7 @@ public function getAssets()
220
220
public function __toArray ()
221
221
{
222
222
$ result = [];
223
- foreach ($ this ->propertyMap as $ property ) {
223
+ foreach ($ this ->serializableProperties as $ property ) {
224
224
$ result [$ property ] = $ this ->{$ property };
225
225
}
226
226
@@ -236,7 +236,7 @@ public function __toArray()
236
236
*/
237
237
public function populateWithArray (array $ data )
238
238
{
239
- foreach ($ this ->propertyMap as $ property ) {
239
+ foreach ($ this ->serializableProperties as $ property ) {
240
240
$ this ->{$ property } = $ this ->getDataValue ($ property , $ data );
241
241
}
242
242
}
@@ -248,7 +248,8 @@ public function populateWithArray(array $data)
248
248
* @param array $data
249
249
* @return array
250
250
*/
251
- private function getDataValue ($ name , array $ data ) {
251
+ private function getDataValue ($ name , array $ data )
252
+ {
252
253
return isset ($ data [$ name ]) ? $ data [$ name ] : [];
253
254
}
254
255
}
You can’t perform that action at this time.
0 commit comments