sarga/packages/Webkul/Discount/src/Actions/Cart/WholeCartToFixed.php

24 lines
464 B
PHP
Raw Normal View History

<?php
namespace Webkul\Discount\Actions\Cart;
use Webkul\Discount\Actions\Cart\Cart\FixedAmount;
2019-09-06 00:15:16 +00:00
class WholeCartToFixed
{
2019-09-06 00:15:16 +00:00
/**
* To calculate impact of cart rule's action of current items of cart instance
*
* @param CartRule $rule
*
* @return boolean
*/
2019-08-04 23:36:51 +00:00
public function calculate($rule)
{
2019-09-06 00:15:16 +00:00
$actualInstance = new FixedAmount();
2019-07-23 12:53:49 +00:00
2019-09-06 00:15:16 +00:00
$result = $actualInstance->calculate($rule);
2019-09-06 00:15:16 +00:00
return $result;
}
}