BCard - Documentation technique

OrderItem
in package

Ligne d'une commande {@see Order}, décrivant une carte de visite physique à produire.

Une commande porte zéro à plusieurs lignes OrderItem (relation orders vers Order, facultative côté ligne). Chaque ligne référence en outre le modèle de carte commandé (Card) et, optionnellement, l'employé auquel elle est destinée (Employee). colorOption et printOption pointent vers les variantes catalogue (CardColorOption, CardPrintOption) tandis que color et design restent des champs texte libres pour des personnalisations hors catalogue. quantity est stocké en chaîne de caractères malgré sa nature numérique.

Attributes
#[Entity]
$repositoryClass: \App\Repository\OrderItemRepository::class

Table of Contents

Properties

$card  : Card|null
$color  : string|null
$colorOption  : CardColorOption|null
$design  : string|null
$employee  : Employee|null
$font  : string|null
$id  : int|null
$orders  : Order|null
$printOption  : CardPrintOption|null
$quantity  : string|null

Methods

getCard()  : Card|null
getColor()  : string|null
getColorOption()  : CardColorOption|null
getDesign()  : string|null
getEmployee()  : Employee|null
getFont()  : string|null
getId()  : int|null
getOrders()  : Order|null
getPrintOption()  : CardPrintOption|null
getQuantity()  : string|null
setCard()  : static
setColor()  : static
setColorOption()  : static
setDesign()  : static
setEmployee()  : static
setFont()  : static
setOrders()  : static
setPrintOption()  : static
setQuantity()  : static

Properties

$card

private Card|null $card = null
Attributes
#[ManyToOne]
$inversedBy: 'orderItems'

$color

private string|null $color = null
Attributes
#[Column]
$length: 255
$nullable: true

$design

private string|null $design = null
Attributes
#[Column]
$length: 255
$nullable: true

$employee

private Employee|null $employee = null
Attributes
#[JoinColumn]
$nullable: true
#[ManyToOne]

$font

private string|null $font = null
Attributes
#[Column]
$length: 255

$id

private int|null $id = null
Attributes
#[Column]
#[GeneratedValue]
#[Id]

$orders

private Order|null $orders = null
Attributes
#[ManyToOne]
$inversedBy: 'orderItems'

$quantity

private string|null $quantity = null
Attributes
#[Column]
$length: 255

Methods

getColor()

public getColor() : string|null
Return values
string|null

getDesign()

public getDesign() : string|null
Return values
string|null

getFont()

public getFont() : string|null
Return values
string|null

getId()

public getId() : int|null
Return values
int|null

getQuantity()

public getQuantity() : string|null
Return values
string|null

setCard()

public setCard(Card|null $card) : static
Parameters
$card : Card|null
Return values
static

setColor()

public setColor(string|null $color) : static
Parameters
$color : string|null
Return values
static

setDesign()

public setDesign(string $design) : static
Parameters
$design : string
Return values
static

setEmployee()

public setEmployee(Employee|null $employee) : static
Parameters
$employee : Employee|null
Return values
static

setFont()

public setFont(string $font) : static
Parameters
$font : string
Return values
static

setOrders()

public setOrders(Order|null $orders) : static
Parameters
$orders : Order|null
Return values
static

setQuantity()

public setQuantity(string $quantity) : static
Parameters
$quantity : string
Return values
static

        
On this page

Search results