Skip to content

Commit

Permalink
magento#25675 Added class phpdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
molneek committed Nov 25, 2019
1 parent 4b18434 commit 3cece5f
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
*/
namespace Magento\CatalogInventory\Model\Quote\Item\QuantityValidator;

/**
* Class QuoteItemQtyList collects qty of quote items
*/
class QuoteItemQtyList
{
/**
Expand All @@ -17,6 +20,7 @@ class QuoteItemQtyList

/**
* Get product qty includes information from all quote items
*
* Need be used only in singleton mode
*
* @param int $productId
Expand All @@ -29,9 +33,7 @@ class QuoteItemQtyList
public function getQty($productId, $quoteItemId, $quoteId, $itemQty)
{
$qty = $itemQty;
if (isset(
$this->_checkedQuoteItems[$quoteId][$productId]['qty']
) && !in_array(
if (isset($this->_checkedQuoteItems[$quoteId][$productId]['qty']) && !in_array(
$quoteItemId,
$this->_checkedQuoteItems[$quoteId][$productId]['items']
)
Expand Down

0 comments on commit 3cece5f

Please sign in to comment.