31 lines
662 B
PHP
31 lines
662 B
PHP
<?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);
|
|
}
|
|
}
|