name); } /** * Returns the last time when the element was modified. * @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 time of the last edit. */ public function getLastModified(bool $formatted = true) : string { //TODO return "TODO"; } /** * 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. */ public function getDatetimeAdded(bool $formatted = true) : string { //TODO return "TODO"; } /******************************************************************************** * * Setters * *********************************************************************************/ /** * Change the name of this element * * @note Spaces at the begin and at the end of the string will be removed * automatically in NamedDBElement::check_values_validity(). * So you don't have to do this yourself. * * @param string $new_name the new name */ public function setName(string $new_name) { $this->name = $new_name; } }