/** * Sets text if it is valid, return the n first characters if it is too long * @param $text */ public function setText($text) { $this->text = ModelValidation::getValidText($text); }