private function getNonPromotionLineItemsKeys(Cart $cart): array
    {
        $lineItems = $this->getNonPromotionLineItems($cart);

        $lineItemKeys = [];

        /** @var LineItem $lineItem */
        foreach ($lineItems as $lineItem) {
            $lineItemKeys[] = $lineItem->getKey();
        }

        return $lineItemKeys;
    }
private function getNonPromotionLineItemsKeys(Cart $cart): array
    {
        $lineItems = $this->getNonPromotionLineItems($cart);

        $lineItemKeys = [];

        /** @var LineItem $lineItem */
        foreach ($lineItems as $lineItem) {
            $lineItemKeys[] = $lineItem->getKey();
        }

        return $lineItemKeys;
    }
private function getNonPromotionLineItemsKeys ( Cart $ cart ) : array { $ lineItems = $ this -> getNonPromotionLineItems ( $ cart ) ; $ lineItemKeys = [ ] ; /** @var LineItem $lineItem */ foreach ( $ lineItems as $ lineItem ) { $ lineItemKeys [ ] = $ lineItem -> getKey ( ) ; } return $ lineItemKeys ; }
return all LineItem Keys that are no promotions
return all LineItem Keys that are no promotions