private function isPromotionPlaceholder(LineItem $lineItem): bool
    {
        if ($lineItem->getType() !== self::LINE_ITEM_TYPE) {
            return false;
        }

        return substr($lineItem->getKey(), 0, strlen(PromotionItemBuilder::PLACEHOLDER_PREFIX)) === PromotionItemBuilder::PLACEHOLDER_PREFIX;
    }
private function isPromotionPlaceholder(LineItem $lineItem): bool
    {
        if ($lineItem->getType() !== self::LINE_ITEM_TYPE) {
            return false;
        }

        return substr($lineItem->getKey(), 0, strlen(PromotionItemBuilder::PLACEHOLDER_PREFIX)) === PromotionItemBuilder::PLACEHOLDER_PREFIX;
    }
private function isPromotionPlaceholder ( LineItem $ lineItem ) : bool { if ( $ lineItem -> getType ( ) !== self :: LINE_ITEM_TYPE ) { return false ; } return substr ( $ lineItem -> getKey ( ) , 0 , strlen ( PromotionItemBuilder :: PLACEHOLDER_PREFIX ) ) === PromotionItemBuilder :: PLACEHOLDER_PREFIX ; }
Gets if the line item is a placeholder and not yet satisfied
promotion line item. This is done by verifying if the key
starts with our placeholder prefix
Gets if the line item is a placeholder and not yet satisfied promotion line item . This is done by verifying if the key starts with our placeholder prefix