private function synchronizeItems(OrderItemInterface $source, OrderItemInterface $target)
    {
        $accessor = PropertyAccess::createPropertyAccessor();
        foreach (array('designation', 'reference', 'price', 'weight', 'tax') as $property) {
            $value = $accessor->getValue($source, $property);
            if ($accessor->getValue($target, $property) != $value) {
                $accessor->setValue($target, $property, $value);
            }
        }
    }
private function synchronizeItems(OrderItemInterface $source, OrderItemInterface $target)
    {
        $accessor = PropertyAccess::createPropertyAccessor();
        foreach (array('designation', 'reference', 'price', 'weight', 'tax') as $property) {
            $value = $accessor->getValue($source, $property);
            if ($accessor->getValue($target, $property) != $value) {
                $accessor->setValue($target, $property, $value);
            }
        }
    }
private function synchronizeItems ( OrderItemInterface $ source , OrderItemInterface $ target ) { $ accessor = PropertyAccess :: createPropertyAccessor ( ) ; foreach ( array ( 'designation' , 'reference' , 'price' , 'weight' , 'tax' ) as $ property ) { $ value = $ accessor -> getValue ( $ source , $ property ) ; if ( $ accessor -> getValue ( $ target , $ property ) != $ value ) { $ accessor -> setValue ( $ target , $ property , $ value ) ; } } }
Synchronizes the items.

@param OrderItemInterface $source
@param OrderItemInterface $target
Synchronizes the items .