Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
37 | 13 | public function redeemCoupon(string $code): CouponContract |
|
38 | { |
||
39 | 13 | $service = call(CouponServiceContract::class); |
|
40 | 13 | $proxy = call($service->verifyCoupon($code, $this)); |
|
41 | |||
42 | 10 | $coupon = $proxy->getInternal(Call::INSTANCE); |
|
43 | |||
44 | 10 | return $service->applyCoupon($coupon, $this); |
|
45 | } |
||
64 |