/** * Gets the discount amount * * @param Cart $cart * @return string */ public function discount(Cart $cart) { return $cart->total(false, false) * $this->value; }