class Cart

Traits

Methods

ArrayCollection|null
getCollection(ArrayCollection|null$collection)

No description

ArrayCollection
createCollectionNotExists(ArrayCollection|null$collection)

No description

ArrayCollection
addEntityToCollection(ArrayCollection$collection,$entity)

No description

ArrayCollection
removeEntityFromCollection(ArrayCollection$collection,$entity)

No description

bool
validMysqlDateTime(string|null$value)

No description

void
checkDateIsLater(string|null$laterDate,string|null$thanDate)

No description

void
checkDateIsEqualOrLater(string|null$laterDate,string|null$thanDate)

No description

void
checkDateIsEarlier(string|null$earlierDate,string|null$thanDate)

No description

void
checkDateIsEqualOrEarlier(string|null$earlierDate,string|null$thanDate)

No description

__construct()

No description

string|null
getId()

No description

float|null
getValue()

No description

CartOwner|null
getCartOwner()

No description

CartStatus|null
getCartStatus()

No description

ArrayCollection
getCartItems()

No description

ArrayCollection
getShopItems()

No description

ArrayCollection
getTickets()

No description

ArrayCollection
getCartErrors()

No description

ArrayCollection
getVouchers()

No description

array
getCoupons()

No description

void
setId(string$id)

No description

void
setValue(float$value)

No description

void
setCartOwner(CartOwner$cartOwner)

No description

void
setCartStatus(CartStatus$cartStatus)

No description

void
setCartItems(ArrayCollection$cartItems)

No description

void
setShopItems(ArrayCollection$shopItems)

No description

void
setCreatedAt(string$createdAt)

No description

string|null
getCreatedAt()

No description

string|null
getExpiredAt()

No description

void
setExpiredAt(string$expiredAt)

No description

void
setTickets(ArrayCollection$tickets)

No description

void
setCartErrors(ArrayCollection$cartErrors)

No description

void
setVouchers(ArrayCollection$vouchers)

No description

void
setCoupons(array$coupons)

No description

void
addCartItem(CartItem$cartItem)

No description

void
removeCartItem(CartItem$cartItem)

No description

void
addShopItem(ShopItem$shopItem)

No description

void
removeShopItem(ShopItem$shopItem)

No description

void
addTicket(Ticket$ticket)

No description

void
removeTicket(Ticket$ticket)

No description

void
addCartError(CartError$cartError)

No description

void
removeCartError(CartError$cartError)

No description

void
addVoucher(Voucher$voucher)

No description

void
removeVoucher(Voucher$voucher)

No description

Details

inCollectionTraitat line11
ArrayCollection|null getCollection(ArrayCollection|null$collection)

Parameters

ArrayCollection|null $collection

Return Value

ArrayCollection|null

inCollectionTraitat line20
ArrayCollection createCollectionNotExists(ArrayCollection|null$collection)

Parameters

ArrayCollection|null $collection

Return Value

ArrayCollection

inCollectionTraitat line29
ArrayCollection addEntityToCollection(ArrayCollection$collection,$entity)

Parameters

ArrayCollection $collection
$entity

Return Value

ArrayCollection

inCollectionTraitat line40
ArrayCollection removeEntityFromCollection(ArrayCollection$collection,$entity)

Parameters

ArrayCollection $collection
$entity

Return Value

ArrayCollection

protectedbool validMysqlDateTime(string|null$value)

Parameters

string|null $value

Return Value

bool

protectedvoid checkDateIsLater(string|null$laterDate,string|null$thanDate)

Parameters

string|null $laterDate
string|null $thanDate

Return Value

void

Exceptions

CommonObjectException

protectedvoid checkDateIsEqualOrLater(string|null$laterDate,string|null$thanDate)

Parameters

string|null $laterDate
string|null $thanDate

Return Value

void

Exceptions

CommonObjectException

protectedvoid checkDateIsEarlier(string|null$earlierDate,string|null$thanDate)

Parameters

string|null $earlierDate
string|null $thanDate

Return Value

void

Exceptions

CommonObjectException

protectedvoid checkDateIsEqualOrEarlier(string|null$earlierDate,string|null$thanDate)

Parameters

string|null $earlierDate
string|null $thanDate

Return Value

void

Exceptions

CommonObjectException

at line36
__construct()

at line46
string|null getId()

Return Value

string|null

at line51
float|null getValue()

Return Value

float|null

at line56
CartOwner|null getCartOwner()

Return Value

CartOwner|null

at line61
CartStatus|null getCartStatus()

Return Value

CartStatus|null

at line66
ArrayCollection getCartItems()

Return Value

ArrayCollection

at line71
ArrayCollection getShopItems()

Return Value

ArrayCollection

at line76
ArrayCollection getTickets()

Return Value

ArrayCollection

at line81
ArrayCollection getCartErrors()

Return Value

ArrayCollection

at line86
ArrayCollection getVouchers()

Return Value

ArrayCollection

at line91
array getCoupons()

Return Value

array

at line96
void setId(string$id)

Parameters

string $id

Return Value

void

at line101
void setValue(float$value)

Parameters

float $value

Return Value

void

at line106
void setCartOwner(CartOwner$cartOwner)

Parameters

CartOwner $cartOwner

Return Value

void

at line111
void setCartStatus(CartStatus$cartStatus)

Parameters

CartStatus $cartStatus

Return Value

void

at line116
void setCartItems(ArrayCollection$cartItems)

Parameters

ArrayCollection $cartItems

Return Value

void

at line121
void setShopItems(ArrayCollection$shopItems)

Parameters

ArrayCollection $shopItems

Return Value

void

at line126
void setCreatedAt(string$createdAt)

Parameters

string $createdAt

Return Value

void

at line139
string|null getCreatedAt()

Return Value

string|null

at line144
string|null getExpiredAt()

Return Value

string|null

at line149
void setExpiredAt(string$expiredAt)

Parameters

string $expiredAt

Return Value

void

at line162
void setTickets(ArrayCollection$tickets)

Parameters

ArrayCollection $tickets

Return Value

void

at line167
void setCartErrors(ArrayCollection$cartErrors)

Parameters

ArrayCollection $cartErrors

Return Value

void

at line172
void setVouchers(ArrayCollection$vouchers)

Parameters

ArrayCollection $vouchers

Return Value

void

at line177
void setCoupons(array$coupons)

Parameters

array $coupons

Return Value

void

at line182
void addCartItem(CartItem$cartItem)

Parameters

CartItem $cartItem

Return Value

void

at line187
void removeCartItem(CartItem$cartItem)

Parameters

CartItem $cartItem

Return Value

void

at line192
void addShopItem(ShopItem$shopItem)

Parameters

ShopItem $shopItem

Return Value

void

at line197
void removeShopItem(ShopItem$shopItem)

Parameters

ShopItem $shopItem

Return Value

void

at line202
void addTicket(Ticket$ticket)

Parameters

Ticket $ticket

Return Value

void

at line207
void removeTicket(Ticket$ticket)

Parameters

Ticket $ticket

Return Value

void

at line212
void addCartError(CartError$cartError)

Parameters

CartError $cartError

Return Value

void

at line217
void removeCartError(CartError$cartError)

Parameters

CartError $cartError

Return Value

void

at line222
void addVoucher(Voucher$voucher)

Parameters

Voucher $voucher

Return Value

void

at line227
void removeVoucher(Voucher$voucher)

Parameters

Voucher $voucher

Return Value

void