FleetCart/Modules/Cart/NullCartCoupon.php

62 lines
821 B
PHP
Raw Normal View History

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