FleetCart/Modules/Cart/NullCartCoupon.php

54 lines
756 B
PHP
Raw Permalink Normal View History

2023-06-11 12:14:03 +00:00
<?php
namespace Modules\Cart;
use Modules\Support\Money;
class NullCartCoupon
{
public function id()
{
//
}
public function code()
{
//
}
public function isFreeShipping()
{
return false;
}
public function usageLimitReached()
{
return false;
}
public function didNotSpendTheRequiredAmount()
{
return false;
}
public function spentMoreThanMaximumAmount()
{
return false;
}
public function usedOnce()
{
//
}
public function value()
{
return Money::inDefaultCurrency(0);
}
public function __get($attribute)
{
//
}
}