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:----2eYtYmkHntwcseFsRXTSQM53TIJBEQKPR5t7ydOxmXDUHESaHzvE2ZeUk7ThcyKUt437UYTMOYkzxUEcUD0Uqhw5vhW1e67U2inG28qIX8zlVbPn1rx4M4CUf2nGMxg/8PPrWr4F8aF6ARjKlE/jy9L1IWdSSKm2zqAgxwcv+j6t0cORlWmk3vmTAZfjnoBS/Yh98m7hO1SzlYOy5Te57nM7Vnb2LKHwR6idwis9rasZzOHkE2bq0dnecbzhuqFAgqP3UVin41geE1dN37dwT2k/33eBsftydur0hXiaCacMUPWi30WV2rkLH5av0wxmDd75/I8XWWXqvjmLjGaRc7YQkVoJifkVbm+2D92BGNfiWct0DMFux0js8qgXEP5zrlq2eFOLXPDr+IwopiQXz2EwQlb4/hCPoNhs14EKx2Dq6X1FRyWuPsexrlQk2hfsFHWJcOQ9Vt9WQKms8J8swe1QbV5G8tp05xj6gEV02Q5c7lB/xmSYnPUHTU+wtHYeKyBteHji+KMEwwe+czcjdNFAmK8g2rEB6/69LIQ1+QyEG7evMb8WG4pe5ji9mDe89CfLU/n9tIVTGcTS3yG5TMkR0SNqUDzLwjIp6MBC3gAMfKpau3pzvJUQkSQgDYLSIz6Br379nkoeSfU3zKmAESE7eYMrT6kIH0MkfsY4N60=----ATTACHMENT:----NzMyMDc5MTg4MzQxMzMxOSA3MzQ4Mzc3OTUwMDUwNTkyIDk3MTE4NDE2NTAwOTUxMzk=