public static function createAmountDetails() { $amountDetails = new Details(); $amountDetails->setSubtotal(self::$subtotal); $amountDetails->setTax(self::$tax); $amountDetails->setShipping(self::$shipping); $amountDetails->setFee(self::$fee); return $amountDetails; }