Log in
Model

Total

Magento\Sales\Model\Order\Total

What it does

This class serves as a data container for order total information in Magento 2.

Developers use it to hold and transfer order total data (like subtotal, grand total, tax amounts) when working with order totals, particularly in custom total collectors or when displaying order summary information.

It extends Magento's DataObject to provide magic getter/setter functionality for total-related properties.