FleetCart/Modules/Cart/NullCartCoupon.php
2023-12-03 14:07:47 +00:00

62 lines
821 B
PHP

<?php
namespace Modules\Cart;
use Modules\Support\Money;
class NullCartCoupon
{
public function id(): void
{
//
}
public function code(): void
{
//
}
public function isFreeShipping(): bool
{
return false;
}
public function usageLimitReached(): bool
{
return false;
}
public function didNotSpendTheRequiredAmount(): bool
{
return false;
}
public function spentMoreThanMaximumAmount(): bool
{
return false;
}
public function usedOnce(): void
{
//
}
public function value(): Money
{
return Money::inDefaultCurrency(0);
}
public function __get($attribute)
{
//
}
}