name); } /** * Returns the last time when the element was modified. * @return string The time of the last edit. */ public function getLastModified() : \DateTime { return $this->lastModified; } /** * 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() : \DateTime { //TODO return $this->addedDate; } /******************************************************************************** * * 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) : self { $this->name = $new_name; return $this; } }