Fix phpdoc type

This commit is contained in:
Alex P 2021-11-03 10:16:33 +02:00
parent 57549e445b
commit ed3cc49856

View file

@ -17,49 +17,49 @@ class AmountBreakdown {
/** /**
* The item total. * The item total.
* *
* @var Money * @var Money|null
*/ */
private $item_total; private $item_total;
/** /**
* The shipping. * The shipping.
* *
* @var Money * @var Money|null
*/ */
private $shipping; private $shipping;
/** /**
* The tax total. * The tax total.
* *
* @var Money * @var Money|null
*/ */
private $tax_total; private $tax_total;
/** /**
* The handling. * The handling.
* *
* @var Money * @var Money|null
*/ */
private $handling; private $handling;
/** /**
* The insurance. * The insurance.
* *
* @var Money * @var Money|null
*/ */
private $insurance; private $insurance;
/** /**
* The shipping discount. * The shipping discount.
* *
* @var Money * @var Money|null
*/ */
private $shipping_discount; private $shipping_discount;
/** /**
* The discount. * The discount.
* *
* @var Money * @var Money|null
*/ */
private $discount; private $discount;
@ -75,13 +75,13 @@ class AmountBreakdown {
* @param Money|null $discount The discount. * @param Money|null $discount The discount.
*/ */
public function __construct( public function __construct(
Money $item_total = null, ?Money $item_total = null,
Money $shipping = null, ?Money $shipping = null,
Money $tax_total = null, ?Money $tax_total = null,
Money $handling = null, ?Money $handling = null,
Money $insurance = null, ?Money $insurance = null,
Money $shipping_discount = null, ?Money $shipping_discount = null,
Money $discount = null ?Money $discount = null
) { ) {
$this->item_total = $item_total; $this->item_total = $item_total;