Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
MergeQuoteItems.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
9 
12 
14 {
26  public function afterMerge(Processor $subject, Item $result, Item $source): Item
27  {
28  $giftMessageId = $source->getGiftMessageId();
29 
30  if ($giftMessageId) {
31  $result->setGiftMessageId($giftMessageId);
32  }
33 
34  return $result;
35  }
36 }
$source
Definition: source.php:23
afterMerge(Processor $subject, Item $result, Item $source)