src/Transfer/EzPlatform/Repository/Values/Mapper/ContentTypeMapper.php 1 location
|
@@ 115-122 (lines=8) @@
|
112 |
|
* @param ContentTypeCreateStruct|ContentTypeUpdateStruct $struct |
113 |
|
* @param array $keys |
114 |
|
*/ |
115 |
|
private function arrayToStruct($struct, $keys) |
116 |
|
{ |
117 |
|
foreach ($keys as $ezKey => $transferKey) { |
118 |
|
if (isset($this->contentTypeObject->data[$transferKey])) { |
119 |
|
$struct->$ezKey = $this->contentTypeObject->data[$transferKey]; |
120 |
|
} |
121 |
|
} |
122 |
|
} |
123 |
|
|
124 |
|
/** |
125 |
|
* @param ContentTypeCreateStruct|ContentTypeUpdateStruct $struct |
src/Transfer/EzPlatform/Repository/Values/Mapper/FieldDefinitionMapper.php 1 location
|
@@ 90-97 (lines=8) @@
|
87 |
|
* @param FieldDefinitionCreateStruct|FieldDefinitionUpdateStruct $struct |
88 |
|
* @param array $keys |
89 |
|
*/ |
90 |
|
private function arrayToStruct($struct, $keys) |
91 |
|
{ |
92 |
|
foreach ($keys as $ezKey => $transferKey) { |
93 |
|
if (isset($this->fieldDefinitionObject->data[$transferKey])) { |
94 |
|
$struct->$ezKey = $this->fieldDefinitionObject->data[$transferKey]; |
95 |
|
} |
96 |
|
} |
97 |
|
} |
98 |
|
} |
99 |
|
|
src/Transfer/EzPlatform/Repository/Values/Mapper/LanguageMapper.php 1 location
|
@@ 68-75 (lines=8) @@
|
65 |
|
* @param LanguageCreateStruct $struct |
66 |
|
* @param array $keys |
67 |
|
*/ |
68 |
|
private function arrayToStruct($struct, $keys) |
69 |
|
{ |
70 |
|
foreach ($keys as $ezKey => $transferKey) { |
71 |
|
if (isset($this->languageObject->data[$transferKey])) { |
72 |
|
$struct->$ezKey = $this->languageObject->data[$transferKey]; |
73 |
|
} |
74 |
|
} |
75 |
|
} |
76 |
|
|
77 |
|
/** |
78 |
|
* @param LanguageCreateStruct $struct |
src/Transfer/EzPlatform/Repository/Values/Mapper/LocationMapper.php 1 location
|
@@ 95-102 (lines=8) @@
|
92 |
|
* @param LocationCreateStruct|LocationUpdateStruct $struct |
93 |
|
* @param array $keys |
94 |
|
*/ |
95 |
|
private function arrayToStruct($struct, $keys) |
96 |
|
{ |
97 |
|
foreach ($keys as $ezKey => $transferKey) { |
98 |
|
if (isset($this->locationObject->data[$transferKey])) { |
99 |
|
$struct->$ezKey = $this->locationObject->data[$transferKey]; |
100 |
|
} |
101 |
|
} |
102 |
|
} |
103 |
|
|
104 |
|
/** |
105 |
|
* @param LocationCreateStruct|LocationUpdateStruct $struct |
src/Transfer/EzPlatform/Repository/Values/Mapper/UserMapper.php 1 location
|
@@ 90-97 (lines=8) @@
|
87 |
|
* @param UserCreateStruct|UserUpdateStruct $struct |
88 |
|
* @param array $keys |
89 |
|
*/ |
90 |
|
private function arrayToStruct($struct, $keys) |
91 |
|
{ |
92 |
|
foreach ($keys as $ezKey => $transferKey) { |
93 |
|
if (isset($this->userObject->data[$transferKey])) { |
94 |
|
$struct->$ezKey = $this->userObject->data[$transferKey]; |
95 |
|
} |
96 |
|
} |
97 |
|
} |
98 |
|
|
99 |
|
/** |
100 |
|
* @param UserCreateStruct|UserUpdateStruct $struct |