Table of Contents
-
$code
: string|null
-
$coupon_types
: CouponsTypes|null
-
$created_at
: DateTimeImmutable|null
-
$description
: string|null
-
$discount
: int|null
-
$id
: int|null
-
$is_valid
: bool|null
-
$max_usage
: int|null
-
$orders
: Collection
-
$validity
: DateTimeInterface|null
-
__construct()
: mixed
-
addOrder()
: self
-
getCode()
: string|null
-
getCouponTypes()
: CouponsTypes|null
-
getCreatedAt()
: DateTimeImmutable|null
-
getDescription()
: string|null
-
getDiscount()
: int|null
-
getId()
: int|null
-
getMaxUsage()
: int|null
-
getOrders()
: Collection<int, Orders>
-
getValidity()
: DateTimeInterface|null
-
isIsValid()
: bool|null
-
removeOrder()
: self
-
setCode()
: self
-
setCouponTypes()
: self
-
setCreatedAt()
: self
-
setDescription()
: self
-
setDiscount()
: self
-
setIsValid()
: self
-
setMaxUsage()
: self
-
setValidity()
: self
$code
private
string|null
$code
= null
$coupon_types
private
CouponsTypes|null
$coupon_types
= null
$created_at
private
DateTimeImmutable|null
$created_at
= null
$description
private
string|null
$description
= null
$discount
private
int|null
$discount
= null
$id
private
int|null
$id
= null
$is_valid
private
bool|null
$is_valid
= null
$max_usage
private
int|null
$max_usage
= null
$orders
private
Collection
$orders
$validity
private
DateTimeInterface|null
$validity
= null
__construct()
public
__construct() : mixed
Return values
mixed
—
addOrder()
public
addOrder(Orders $order) : self
Parameters
-
$order
: Orders
-
Return values
self
—
getCode()
public
getCode() : string|null
Return values
string|null
—
getCouponTypes()
public
getCouponTypes() : CouponsTypes|null
Return values
CouponsTypes|null
—
getCreatedAt()
public
getCreatedAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|null
—
getDescription()
public
getDescription() : string|null
Return values
string|null
—
getDiscount()
public
getDiscount() : int|null
Return values
int|null
—
getId()
public
getId() : int|null
Return values
int|null
—
getMaxUsage()
public
getMaxUsage() : int|null
Return values
int|null
—
getOrders()
public
getOrders() : Collection<int, Orders>
Return values
Collection<int, Orders>
—
getValidity()
public
getValidity() : DateTimeInterface|null
Return values
DateTimeInterface|null
—
isIsValid()
public
isIsValid() : bool|null
Return values
bool|null
—
removeOrder()
public
removeOrder(Orders $order) : self
Parameters
-
$order
: Orders
-
Return values
self
—
setCode()
public
setCode(string $code) : self
Parameters
-
$code
: string
-
Return values
self
—
setCouponTypes()
public
setCouponTypes(CouponsTypes|null $coupon_types) : self
Parameters
-
$coupon_types
: CouponsTypes|null
-
Return values
self
—
setCreatedAt()
public
setCreatedAt(DateTimeImmutable $created_at) : self
Parameters
-
$created_at
: DateTimeImmutable
-
Return values
self
—
setDescription()
public
setDescription(string $description) : self
Parameters
-
$description
: string
-
Return values
self
—
setDiscount()
public
setDiscount(int $discount) : self
Parameters
-
$discount
: int
-
Return values
self
—
setIsValid()
public
setIsValid(bool $is_valid) : self
Parameters
-
$is_valid
: bool
-
Return values
self
—
setMaxUsage()
public
setMaxUsage(int $max_usage) : self
Parameters
-
$max_usage
: int
-
Return values
self
—
setValidity()
public
setValidity(DateTimeInterface $validity) : self
Parameters
-
$validity
: DateTimeInterface
-
Return values
self
—