Logidav Docs

CustomerReview
in package

CustomerReview

Tags
ORM\Table

(name="mz_customer_reviews")

ORM\Entity

(repositoryClass="AppBundle\Repository\CustomerReviewRepository")

ORM\HasLifecycleCallbacks

()

Table of Contents

Properties

$comment  : string
$createdAt  : DateTime
$customerEmail  : string
$customerName  : string
$id  : int
$orderType  : string
$reviewId  : int
$reviewType  : string
$source  : string
$stars  : float

Methods

getComment()  : string
Get comment
getCreatedAt()  : DateTime
Get createdAt
getCustomerEmail()  : string
Get customerEmail
getCustomerName()  : string
Get customerName
getId()  : int
Get id
getOrderType()  : string|null
getReviewId()  : int
getReviewType()  : string
Get reviewType
getSource()  : string
Get source
getStars()  : float
Get stars
setComment()  : CustomerReview
Set comment
setCreatedAt()  : CustomerReview
Set createdAt
setCreatedAtValue()  : mixed
setCustomerEmail()  : CustomerReview
Set customerEmail
setCustomerName()  : CustomerReview
Set customerName
setId()  : void
setOrderType()  : void
setReviewId()  : void
setReviewType()  : CustomerReview
Set reviewType
setSource()  : CustomerReview
Set source
setStars()  : CustomerReview
Set stars

Properties

$comment

private string $comment
Tags
ORM\Column

(name="comment", type="text", nullable=true)

$createdAt

private DateTime $createdAt
Tags
ORM\Column

(name="created_at", type="datetime")

$customerEmail

private string $customerEmail
Tags
ORM\Column

(name="customer_email", type="string", length=255)

Assert\Email

(message="L'adresse email '{{ value }}' n'est pas valide")

$customerName

private string $customerName
Tags
ORM\Column

(name="customer_name", type="string", length=255)

Assert\NotBlank

(message="Le nom du client ne peut pas être vide")

$id

private int $id
Tags
ORM\Column

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

ORM\Id
ORM\GeneratedValue

(strategy="AUTO")

$orderType

private string $orderType
Tags
ORM\Column

(name="order_type", type="string", length=100, nullable=true)

$reviewId

private int $reviewId
Tags
ORM\Column

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

$reviewType

private string $reviewType
Tags
ORM\Column

(name="review_type", type="string", length=50)

$source

private string $source
Tags
ORM\Column

(name="source", type="string", length=100, nullable=true)

$stars

private float $stars
Tags
ORM\Column

(name="stars", type="float")

Assert\Range

( min=0, max=5, minMessage="La note ne peut pas être inférieure à {{ limit }}", maxMessage="La note ne peut pas être supérieure à {{ limit }}" )

Methods

getComment()

Get comment

public getComment() : string
Return values
string

getCreatedAt()

Get createdAt

public getCreatedAt() : DateTime
Return values
DateTime

getCustomerEmail()

Get customerEmail

public getCustomerEmail() : string
Return values
string

getCustomerName()

Get customerName

public getCustomerName() : string
Return values
string

getOrderType()

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

getReviewType()

Get reviewType

public getReviewType() : string
Return values
string

getSource()

Get source

public getSource() : string
Return values
string

getStars()

Get stars

public getStars() : float
Return values
float

setCreatedAtValue()

public setCreatedAtValue() : mixed
Tags
ORM\PrePersist

setOrderType()

public setOrderType(string|null $orderType) : void
Parameters
$orderType : string|null

setReviewId()

public setReviewId(int $reviewId) : void
Parameters
$reviewId : int

        
On this page

Search results