Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AbstractItem.php
Go to the documentation of this file.
1 <?php
8 
10 
17 abstract class AbstractItem implements ItemInterface
18 {
22  protected $item;
23 
27  public function getItemData(Item $item)
28  {
29  $this->item = $item;
30  return \array_merge(
31  ['product_type' => $item->getProductType()],
32  $this->doGetItemData()
33  );
34  }
35 
41  abstract protected function doGetItemData();
42 }