Added a basic dialog for editing/creating attachmentType elements.

This commit is contained in:
Jan Böhmer 2019-03-28 19:24:34 +01:00
parent 4652339879
commit 3e7150735d
12 changed files with 568 additions and 146 deletions

View file

@ -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;
}