. */ declare(strict_types=1); namespace App\Entity\Contracts; use DateTime; interface TimeTravelInterface { /** * Checks if this entry has informations which data has changed. * * @return bool true if this entry has informations about the changed data */ public function hasOldDataInformations(): bool; /** * Returns the data the entity had before this log entry. */ public function getOldData(): array; /** * Returns the the timestamp associated with this change. */ public function getTimestamp(): DateTime; }