mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-25 11:18:51 +02:00
Renamed getDatetimeAdded so it has the same name as the coloumn name
This commit is contained in:
parent
336ff7b103
commit
52acac3681
3 changed files with 7 additions and 9 deletions
|
@ -69,7 +69,7 @@ abstract class NamedDBElement extends DBElement
|
|||
|
||||
/**
|
||||
* Returns the last time when the element was modified.
|
||||
* @return string The time of the last edit.
|
||||
* @return \DateTime The time of the last edit.
|
||||
*/
|
||||
public function getLastModified() : \DateTime
|
||||
{
|
||||
|
@ -78,13 +78,10 @@ abstract class NamedDBElement extends DBElement
|
|||
|
||||
/**
|
||||
* Returns the date/time when the element was created.
|
||||
* @param $formatted bool When true, the date gets formatted with the locale and timezone settings.
|
||||
* When false, the raw value from the DB is returned.
|
||||
* @return string The creation time of the part.
|
||||
* @return \DateTime The creation time of the part.
|
||||
*/
|
||||
public function getDatetimeAdded() : \DateTime
|
||||
public function getAddedDate() : \DateTime
|
||||
{
|
||||
//TODO
|
||||
return $this->addedDate;
|
||||
}
|
||||
|
||||
|
@ -102,6 +99,7 @@ abstract class NamedDBElement extends DBElement
|
|||
* So you don't have to do this yourself.
|
||||
*
|
||||
* @param string $new_name the new name
|
||||
* @return self
|
||||
*/
|
||||
public function setName(string $new_name) : self
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue