'free item' =>
[true
],
'not free item' =>
[false
],
'no delivery information' =>
[null
],
];
} private function getLineItem(?bool
$freeDelivery = null
): LineItem
{ $lineItem =
new LineItem(Uuid::
randomHex(), LineItem::PRODUCT_LINE_ITEM_TYPE
);
if ($freeDelivery !== null
) { $lineItem->
setDeliveryInformation(new DeliveryInformation(3, null,
$freeDelivery));
} return $lineItem;
}}