/** * Always applied to the product total. */ public function perform(PromotionSubjectInterface $subject) { if ($this->isValid()) { $rate = $this->percentage / 100; $subject->addOrderDiscount($subject->getProductTotal() * $rate); } }