mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-25 11:18:51 +02:00
Added a basic dialog for editing/creating attachmentType elements.
This commit is contained in:
parent
4652339879
commit
3e7150735d
12 changed files with 568 additions and 146 deletions
|
@ -74,20 +74,22 @@ abstract class NamedDBElement extends DBElement
|
|||
|
||||
/**
|
||||
* Returns the last time when the element was modified.
|
||||
* Returns null if the element was not yet saved to DB yet.
|
||||
*
|
||||
* @return \DateTime The time of the last edit.
|
||||
* @return \DateTime|null The time of the last edit.
|
||||
*/
|
||||
public function getLastModified(): \DateTime
|
||||
public function getLastModified(): ?\DateTime
|
||||
{
|
||||
return $this->lastModified;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the date/time when the element was created.
|
||||
* Returns null if the element was not yet saved to DB yet.
|
||||
*
|
||||
* @return \DateTime The creation time of the part.
|
||||
* @return \DateTime|null The creation time of the part.
|
||||
*/
|
||||
public function getAddedDate(): \DateTime
|
||||
public function getAddedDate(): ?\DateTime
|
||||
{
|
||||
return $this->addedDate;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue