private function getPromotionLineItems(Cart $cart): array
    {
        return array_filter(
            $cart->getLineItems()->getElements(),
            function (LineItem $lineItem) {
                return $lineItem->getType() === self::LINE_ITEM_TYPE;
            }
        );
    }
private function getPromotionLineItems(Cart $cart): array
    {
        return array_filter(
            $cart->getLineItems()->getElements(),
            function (LineItem $lineItem) {
                return $lineItem->getType() === self::LINE_ITEM_TYPE;
            }
        );
    }
private function getPromotionLineItems ( Cart $ cart ) : array { return array_filter ( $ cart -> getLineItems ( ) -> getElements ( ) , function ( LineItem $ lineItem ) { return $ lineItem -> getType ( ) === self :: LINE_ITEM_TYPE ; } ) ; }
Gets all promotion line items from the cart.
This includes placeholders and real, satisfied promotion line items.
Gets all promotion line items from the cart . This includes placeholders and real satisfied promotion line items .