init
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace Stemcell\Checkout\Model\Cart;
|
||||
|
||||
use Stemcell\Checkout\Api\Data\Quote\TotalsInterface;
|
||||
use Stemcell\Checkout\Api\Data\Quote\TotalsItemInterface;
|
||||
|
||||
class Totals extends \Magento\Quote\Model\Cart\Totals implements TotalsInterface
|
||||
{
|
||||
/**
|
||||
* Get totals by items
|
||||
*
|
||||
* @return TotalsItemInterface[]|null
|
||||
*/
|
||||
public function getItems()
|
||||
{
|
||||
return $this->getData(self::KEY_ITEMS);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get totals by items
|
||||
*
|
||||
* @param TotalsItemInterface[] $items
|
||||
* @return $this
|
||||
*/
|
||||
public function setItems(array $items = null)
|
||||
{
|
||||
return $this->setData(self::KEY_ITEMS, $items);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user