Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Member Functions | Protected Attributes
AbstractItem Class Reference
Inheritance diagram for AbstractItem:
ItemInterface DefaultItem

Public Member Functions

 getItemData (Item $item)
 

Protected Member Functions

 doGetItemData ()
 

Protected Attributes

 $item
 

Detailed Description

Abstract item

@api

Since
100.0.2

Definition at line 17 of file AbstractItem.php.

Member Function Documentation

◆ doGetItemData()

doGetItemData ( )
abstractprotected

Get item data. Template method

Returns
array

◆ getItemData()

getItemData ( Item  $item)

{Get item data by quote item

Parameters
Item$item
Returns
array
}

Implements ItemInterface.

Definition at line 27 of file AbstractItem.php.

28  {
29  $this->item = $item;
30  return \array_merge(
31  ['product_type' => $item->getProductType()],
32  $this->doGetItemData()
33  );
34  }

Field Documentation

◆ $item

$item
protected

Definition at line 22 of file AbstractItem.php.


The documentation for this class was generated from the following file: