src/Discount/Engine/SpecialPercent.php
public function getPrice($price, $discount, $request)
    {
        if(!$this->isValid($discount, $request))
            throw new Discount_Exception_InvalidDiscount();
        $newPrice = $price - ($price * $discount->off_value / 100);
        return $newPrice;
    }
public function getPrice($price, $discount, $request)
    {
        if(!$this->isValid($discount, $request))
            throw new Discount_Exception_InvalidDiscount();
        $newPrice = $price - ($price * $discount->off_value / 100);
        return $newPrice;
    }
public function getPrice ( $ price , $ discount , $ request ) { if ( ! $ this -> isValid ( $ discount , $ request ) ) throw new Discount_Exception_InvalidDiscount ( ) ; $ newPrice = $ price - ( $ price * $ discount -> off_value / 100 ) ; return $ newPrice ; }
Compute new price after use given discount.

@param int $price
@param Discount_Discount $discount
@param Pluf_HTTP_Request $request
Compute new price after use given discount .