Documentation

SellRecord
in package
Uses Commentable

Tags
ORM\Entity

(repositoryClass="AppBundle\Repository\SellRecordRepository")

Table of Contents

Properties

$amount  : mixed
total
$comment  : mixed
$date  : mixed
creation date
$festival  : mixed
$gender  : mixed
gender of the client
$id  : mixed
$paidByClient  : mixed
amount paid by client
$productsSold  : mixed
liste des produits de la vente
$user  : mixed
owner of the selling account

Methods

__construct()  : mixed
Constructor
addProductsSold()  : SellRecord
Add productsSold
getAmount()  : string
Get amount
getComment()  : mixed
getDate()  : DateTime
Get date
getFestival()  : Festival
Get festival
getGender()  : string|null
Get gender.
getId()  : mixed
getPaidByClient()  : string
Get paidByClient
getProductsSold()  : Collection
Get productsSold
getUser()  : User
Get user
removeProductsSold()  : mixed
Remove productsSold
setAmount()  : SellRecord
Set amount
setComment()  : mixed
setDate()  : SellRecord
Set date
setFestival()  : SellRecord
Set festival
setGender()  : SellRecord
Set gender.
setId()  : mixed
setPaidByClient()  : SellRecord
Set paidByClient
setUser()  : SellRecord
Set user

Properties

$amount

total

private mixed $amount
Tags
ORM\Column

(type="decimal", scale=2, nullable=false)

$comment

private mixed $comment
Tags
ORM\Column

(type="string", length=256 , nullable=true)

$date

creation date

private mixed $date
Tags
ORM\Column

(type="datetime")

$festival

private mixed $festival
Tags
ORM\ManyToOne

(targetEntity="AppBundle\Entity\Festival",inversedBy="sellRecords")

$gender

gender of the client

private mixed $gender
Tags
ORM\Column

( type = "string", nullable=true )

$id

private mixed $id
Tags
ORM\Column

(name="id", type="integer")

ORM\Id
ORM\GeneratedValue

(strategy="AUTO")

$paidByClient

amount paid by client

private mixed $paidByClient
Tags
ORM\Column

(type="decimal", scale=2, nullable=true)

$productsSold

liste des produits de la vente

private mixed $productsSold
Tags
ORM\OneToMany

(targetEntity="AppBundle\Entity\ProductSold", mappedBy="sellRecords", cascade={"remove", "persist","detach"})

$user

owner of the selling account

private mixed $user
Tags
ORM\ManyToOne

(targetEntity="AppBundle\Entity\User", inversedBy="sellRecords")

Methods

__construct()

Constructor

public __construct() : mixed

getAmount()

Get amount

public getAmount() : string
Return values
string

getDate()

Get date

public getDate() : DateTime
Return values
DateTime

getGender()

Get gender.

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

getPaidByClient()

Get paidByClient

public getPaidByClient() : string
Return values
string

setComment()

public setComment(mixed $comment) : mixed
Parameters
$comment : mixed

setGender()

Set gender.

public setGender([string|null $gender = null ]) : SellRecord
Parameters
$gender : string|null = null
Return values
SellRecord

setId()

public setId(mixed $id) : mixed
Parameters
$id : mixed

setPaidByClient()

Set paidByClient

public setPaidByClient(string $paidByClient) : SellRecord
Parameters
$paidByClient : string
Return values
SellRecord

        
On this page

Search results