/** * @inheritdoc */ public function getCartItemDiscount(CartItem $cartItem) { return $cartItem->getQuantity() * $cartItem->getPrice() * ($this->percentage / 100); }