CrudObject
extends TICEntity
in package
Uses
EntityTimestampable, EntityEnabled
Entité de base disposant d'éventuelles méthodes utiles.
Tags
Table of Contents
Properties
- $category : mixed
- $comment : mixed
- $createdAt : mixed
- $description : mixed
- $enabled : mixed
- $id : mixed
- $isTimestampable : mixed
- Flag permettant de désactiver les actions des méthodes en prePersist et preSave
- $name : mixed
- $price : mixed
- $publishedAt : mixed
- $quantity : mixed
- $score : mixed
- $since : mixed
- $updatedAt : mixed
Methods
- __construct() : mixed
- __toString() : mixed
- createTimestampableValues() : void
- Actions automatiques si l'entité dispose de "@ORM\HasLifecycleCallbacks"
- doTimestampable() : bool
- Gestion de l'activation des actions en prePersist et preSave
- getCategory() : string|null
- getComment() : string|null
- getCreatedAt() : DateTimeInterface|null
- Get the creation date.
- getDescription() : string|null
- getEnabled() : bool|null
- Get the enabled state.
- getId() : int|null
- getName() : string|null
- getPrice() : string|null
- getPublishedAt() : DateTimeInterface|null
- getQuantity() : int|null
- getScore() : int|null
- getSince() : DateTimeInterface|null
- getUpdatedAt() : DateTimeInterface|null
- Get the modification date.
- isEnabled() : bool
- Get the enabled state.
- setCategory() : self
- setComment() : self
- setCreatedAt() : self
- Set the creation date.
- setDescription() : self
- setEnabled() : self
- Set the enabled state.
- setName() : self
- setPrice() : self
- setPublishedAt() : self
- setQuantity() : self
- setScore() : self
- setSince() : self
- setUpdatedAt() : self
- Set the modification date.
- updateTimestampableValues() : void
- Actions automatiques si l'entité dispose de "@ORM\HasLifecycleCallbacks"
Properties
$category
private
mixed
$category
Tags
$comment
private
mixed
$comment
Tags
$createdAt
private
mixed
$createdAt
Tags
$description
private
mixed
$description
Tags
$enabled
private
mixed
$enabled
= true
Tags
$id
private
mixed
$id
Tags
$isTimestampable
Flag permettant de désactiver les actions des méthodes en prePersist et preSave
private
mixed
$isTimestampable
= true
$name
private
mixed
$name
Tags
$price
private
mixed
$price
Tags
$publishedAt
private
mixed
$publishedAt
Tags
$quantity
private
mixed
$quantity
Tags
$score
private
mixed
$score
Tags
$since
private
mixed
$since
Tags
$updatedAt
private
mixed
$updatedAt
Tags
Methods
__construct()
public
__construct() : mixed
__toString()
public
__toString() : mixed
createTimestampableValues()
Actions automatiques si l'entité dispose de "@ORM\HasLifecycleCallbacks"
public
createTimestampableValues() : void
Tags
doTimestampable()
Gestion de l'activation des actions en prePersist et preSave
public
doTimestampable([bool $state = null ]) : bool
Parameters
- $state : bool = null
-
Nouvel état d'activation (true=actif / false=inactif)
Return values
bool —Retourne l'état d'activation en cours
getCategory()
public
getCategory() : string|null
Return values
string|nullgetComment()
public
getComment() : string|null
Return values
string|nullgetCreatedAt()
Get the creation date.
public
getCreatedAt() : DateTimeInterface|null
Return values
DateTimeInterface|nullgetDescription()
public
getDescription() : string|null
Return values
string|nullgetEnabled()
Get the enabled state.
public
getEnabled() : bool|null
Return values
bool|nullgetId()
public
getId() : int|null
Return values
int|nullgetName()
public
getName() : string|null
Return values
string|nullgetPrice()
public
getPrice() : string|null
Return values
string|nullgetPublishedAt()
public
getPublishedAt() : DateTimeInterface|null
Return values
DateTimeInterface|nullgetQuantity()
public
getQuantity() : int|null
Return values
int|nullgetScore()
public
getScore() : int|null
Return values
int|nullgetSince()
public
getSince() : DateTimeInterface|null
Return values
DateTimeInterface|nullgetUpdatedAt()
Get the modification date.
public
getUpdatedAt() : DateTimeInterface|null
Return values
DateTimeInterface|nullisEnabled()
Get the enabled state.
public
isEnabled() : bool
Return values
boolsetCategory()
public
setCategory(string|null $category) : self
Parameters
- $category : string|null
Return values
selfsetComment()
public
setComment(string|null $comment) : self
Parameters
- $comment : string|null
Return values
selfsetCreatedAt()
Set the creation date.
public
setCreatedAt(DateTimeInterface|null $createdAt) : self
Parameters
- $createdAt : DateTimeInterface|null
Return values
selfsetDescription()
public
setDescription(string|null $description) : self
Parameters
- $description : string|null
Return values
selfsetEnabled()
Set the enabled state.
public
setEnabled(bool|null $enabled) : self
Parameters
- $enabled : bool|null
Return values
selfsetName()
public
setName(string $name) : self
Parameters
- $name : string
Return values
selfsetPrice()
public
setPrice(string $price) : self
Parameters
- $price : string
Return values
selfsetPublishedAt()
public
setPublishedAt(DateTimeInterface $publishedAt) : self
Parameters
- $publishedAt : DateTimeInterface
Return values
selfsetQuantity()
public
setQuantity(int $quantity) : self
Parameters
- $quantity : int
Return values
selfsetScore()
public
setScore(int|null $score) : self
Parameters
- $score : int|null
Return values
selfsetSince()
public
setSince(DateTimeInterface $since) : self
Parameters
- $since : DateTimeInterface
Return values
selfsetUpdatedAt()
Set the modification date.
public
setUpdatedAt(DateTimeInterface|null $updatedAt) : self
Parameters
- $updatedAt : DateTimeInterface|null
Return values
selfupdateTimestampableValues()
Actions automatiques si l'entité dispose de "@ORM\HasLifecycleCallbacks"
public
updateTimestampableValues() : void