. */ declare(strict_types=1); namespace App\Entity\Contracts; use DateTime; interface TimeStampableInterface { /** * Returns the last time when the element was modified. * Returns null if the element was not yet saved to DB yet. * * @return \DateTimeInterface|null the time of the last edit */ public function getLastModified(): ?\DateTimeInterface; /** * Returns the date/time when the element was created. * Returns null if the element was not yet saved to DB yet. * * @return \DateTimeInterface|null the creation time of the part */ public function getAddedDate(): ?\DateTimeInterface; }