public function finalAmount(&$amount, array &$components, array $price_rule, array $data)
    {
        $value = $this->convertValue($price_rule, $data['currency']);
        $components[$price_rule['price_rule_id']] = array('rule' => $price_rule, 'price' => $value);
        return $amount = $value;
    }
public function finalAmount(&$amount, array &$components, array $price_rule, array $data)
    {
        $value = $this->convertValue($price_rule, $data['currency']);
        $components[$price_rule['price_rule_id']] = array('rule' => $price_rule, 'price' => $value);
        return $amount = $value;
    }
public function finalAmount ( & $ amount , array & $ components , array $ price_rule , array $ data ) { $ value = $ this -> convertValue ( $ price_rule , $ data [ 'currency' ] ) ; $ components [ $ price_rule [ 'price_rule_id' ] ] = array ( 'rule' => $ price_rule , 'price' => $ value ) ; return $ amount = $ value ; }
Sets a final amount using the price rule value
@param int $amount
@param array $components
@param array $price_rule
@param array $data
@return int
Sets a final amount using the price rule value