2. Model interfaces

2.1. SoftDeletableInterface

This interface will ask you to implement the following methods to your model, they will use by the soft deletable Doctrine2 extension. :

Method Description Returned value
isDeleted() Check if the resource has been deleted boolean
getDeletedAt() Get the time of deletion DateTime
setDeletedAt(DateTime $deletedAt) Cet deletion time. Void

2.2. TimestampableInterface

This interface will ask you to implement the following methods to your model, they will use by the timestampable Doctrine2 extension. :

Method Description Returned value
getCreatedAt() Get creation time DateTime
getUpdatedAt() Get the time of last update DateTime
setCreatedAt(DateTime $createdAt) Set creation time Void
setUpdatedAt(DateTime $updatedAt) Set the time of last update Void