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

        // its a correct line item type, so it can either be
        // a placeholder or a real one.
        return !$this->isPromotionPlaceholder($lineItem);
    }
private function isRealPromotionItem(LineItem $lineItem): bool
    {
        if ($lineItem->getType() !== self::LINE_ITEM_TYPE) {
            return false;
        }

        // its a correct line item type, so it can either be
        // a placeholder or a real one.
        return !$this->isPromotionPlaceholder($lineItem);
    }
private function isRealPromotionItem ( LineItem $ lineItem ) : bool { if ( $ lineItem -> getType ( ) !== self :: LINE_ITEM_TYPE ) { return false ; } // its a correct line item type, so it can either be // a placeholder or a real one. return ! $ this -> isPromotionPlaceholder ( $ lineItem ) ; }
Gets if the line item is a real and satisfied promotion line item.
Gets if the line item is a real and satisfied promotion line item .