¨4.0.1¨
This commit is contained in:
@@ -3,30 +3,34 @@
|
||||
namespace Modules\Coupon\Exceptions;
|
||||
|
||||
use Exception;
|
||||
use Modules\Support\Money;
|
||||
use Illuminate\Http\Response;
|
||||
|
||||
class MinimumSpendException extends Exception
|
||||
{
|
||||
/**
|
||||
* The amount that need to spend.
|
||||
*
|
||||
* @var \Modules\Support\Money
|
||||
* @var Money
|
||||
*/
|
||||
private $money;
|
||||
|
||||
|
||||
/**
|
||||
* Create a new instance of the exceptions
|
||||
*
|
||||
* @param \Modules\Support\Money $money
|
||||
* @param Money $money
|
||||
*/
|
||||
public function __construct($money)
|
||||
{
|
||||
$this->money = $money;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Render the exception into an HTTP response.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
* @return Response
|
||||
*/
|
||||
public function render()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user