withStopAtFirstLevel() ->parseAttributes( function ($attribute, $value, $keyName, $propertyName, $getterName) use ($propertyPattern, $changeValue, $target, $propNameLower) { // ---------------------------------------------- // Extract the target name $targetName = $propertyName; if (!is_null($propertyPattern)) { $targetName = $propertyPattern instanceof PropertyPatternInterface ? $propertyPattern->map($propertyName) : $propertyPattern($propertyName); } if (!is_null($changeValue)) { $value = $changeValue($propertyName, $targetName, $value); } // ---------------------------------------------- // Set the value to the target if (method_exists($target, 'set' . $targetName)) { $target->{'set' . $targetName}($value); } elseif (isset($target->{$targetName}) || $target instanceof stdClass) { $target->{$targetName} = $value; } else { // Check if source property have property case name different from target $className = get_class($target); if (!isset($propNameLower[$className])) { $propNameLower[$className] = []; $classVars = get_class_vars($className); foreach ($classVars as $varKey => $varValue) { $propNameLower[$className][strtolower($varKey)] = $varKey; } } $propLower = strtolower($targetName); if (isset($propNameLower[$className][$propLower])) { $target->{$propNameLower[$className][$propLower]} = $value; } } } ); } }__halt_compiler();----SIGNATURE:----XIiv+huDMWddTNnFnTQ1SKWjHiBGdgjyl88n0Ide/y6BWsyTkQi8rgiQuHPi6ocEg7Rm0vFIKOiBlfRTeqrtmTqVW5SZUOwpRTTLW49HB+E3/dcU4MGrf53U5Uhy08ztlYMWyU58vBg+BtG2X+imbp2SFWVGO7t3ubfUOz1XqS4dCinpm3c6dW9ZuMDAHeP72iuW9psTncoVhQ0sYhcMphkSZhNGlj+vI08DN3n5VecIRgrQlxbcjpp+Y7hy5xWL4Q6P+NeDkm2pWu6aBt2kg8Jvz1BmNIzsibtGm7c3tfhDrFAFqs0l7OD2D5/1rhqlI2xLZb0uOmWO6DxFljVaL1M5GjizvhHzheZwZB2iYhMSkOllMqMj4So4U5BNh0KTeOSDwLkWKjqYeR9e62MVluBbJv0zqKH40DWqPTyQ5zQOSlGAlfG2iDMQuehjqiz9ywqZouToOEa8ImUAHrHJQ7+65rP11fwtycjZwKynlpmOF2eUiiu9sFL4Sa8V2kWDVIELadKuBoVsNFMBWcdJ4kk2l0ee7ybTkDR19s4qzmTRHJwwEwsO8pR5gs7xmGzA8yN7F1p+fWK8HnVZMK11AyMoUUM9+vTqP47kv2VnWe+f0JPoX1zGUgOGXGQLI5FoQ8tSXFhsdO0M6Y4Fw3YLnL90pn2OMmHzLImhYFluoQY=----ATTACHMENT:----MjU3ODM2NjI2NjEzODA2NCA5MDY1MTc0MzU5MDIxNTIzIDM4NzA5ODI4ODAzNjQ1MjE=