/**
  * @return \Generated\Shared\Transfer\CartChangeTransfer
  */
 protected function createCartChangeTransfer(array $cartItems)
 {
     $changeTransfer = new CartChangeTransfer();
     foreach ($cartItems as $cartItem => $options) {
         $cartItem = new ItemTransfer();
         foreach ($options as $option) {
             $cartItem->addProductOption($option);
         }
         $changeTransfer->addItem($cartItem);
     }
     return $changeTransfer;
 }