public function setCoupon($coupon)
    {
        $this->discountAmount = $coupon->discount;
        $this->couponCode = $coupon->code;

        return $this;
    }
public function setCoupon($coupon)
    {
        $this->discountAmount = $coupon->discount;
        $this->couponCode = $coupon->code;

        return $this;
    }
public function setCoupon ( $ coupon ) { $ this -> discountAmount = $ coupon -> discount ; $ this -> couponCode = $ coupon -> code ; return $ this ; }
Applies a coupon for the package, once applied the package price is adjusted accordingly.

@param ComSubscriptionsDomainEntityCoupon|string $coupon
Applies a coupon for the package once applied the package price is adjusted accordingly .