Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Details.php
Go to the documentation of this file.
1 <?php
7 
9 
16 class Details extends \Magento\Checkout\Block\Cart\Totals
17 {
21  protected $_address;
22 
28  public function getAddress()
29  {
30  if (empty($this->_address)) {
31  $this->_address = $this->getQuote()->getShippingAddress();
32  }
33  return $this->_address;
34  }
35 
41  public function getTotals()
42  {
43  return $this->getQuote()->getTotals();
44  }
45 }