Migrated doctrine annotations to attributes

This commit is contained in:
Jan Böhmer 2023-05-28 01:51:13 +02:00
parent 0bc4699cdc
commit 0837f84a43
8 changed files with 121 additions and 159 deletions

View file

@ -30,15 +30,15 @@ interface TimeStampableInterface
* Returns the last time when the element was modified.
* Returns null if the element was not yet saved to DB yet.
*
* @return DateTime|null the time of the last edit
* @return \DateTimeInterface|null the time of the last edit
*/
public function getLastModified(): ?DateTime;
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 DateTime|null the creation time of the part
* @return \DateTimeInterface|null the creation time of the part
*/
public function getAddedDate(): ?DateTime;
public function getAddedDate(): ?\DateTimeInterface;
}

View file

@ -41,5 +41,5 @@ interface TimeTravelInterface
/**
* Returns the timestamp associated with this change.
*/
public function getTimestamp(): DateTime;
public function getTimestamp(): \DateTimeInterface;
}