Skip to content

Commit

Permalink
Traits / Redeemable: renamed redeemCouponCode -> redeemCoupon
Browse files Browse the repository at this point in the history
  • Loading branch information
alexblunck committed Nov 15, 2017
1 parent 2db894c commit 93b0ef1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Traits/Redeemable.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@

namespace Blunck\Coupons\Traits;

use Blunck\Coupons\Coupons;
use Blunck\Coupons\Models\Coupon;
use Coupons;

trait Redeemable
{
/**
* Redeem coupon code for user.
* Redeem coupon for user.
*
* @param string $code
* @param Coupon $coupon
*
* @return Coupon|false
*/
public function redeemCouponCode($code)
public function redeemCoupon(Coupon $coupon)
{
return (new Coupons())::redeem($code, $this);
return Coupons::redeem($coupon, $this);
}

/**
Expand Down

0 comments on commit 93b0ef1

Please sign in to comment.