mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-16 13:24:31 +02:00
Migrated doctrine annotations to attributes
This commit is contained in:
parent
0bc4699cdc
commit
0837f84a43
8 changed files with 121 additions and 159 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -41,5 +41,5 @@ interface TimeTravelInterface
|
|||
/**
|
||||
* Returns the timestamp associated with this change.
|
||||
*/
|
||||
public function getTimestamp(): DateTime;
|
||||
public function getTimestamp(): \DateTimeInterface;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue