name); */ return $this->name; } /******************************************************************************** * * Setters * *********************************************************************************/ /** * Change the name of this element. * * 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 * * @return self */ public function setName(string $new_name): self { $this->name = $new_name; return $this; } /****************************************************************************** * * Helpers * ******************************************************************************/ public function __toString() { return $this->getName(); } }