comments->minLength) throw new SimpleException(sprintf('Comment must have at least %d characters', $config->comments->minLength)); if (strlen($text) > $config->comments->maxLength) throw new SimpleException(sprintf('Comment must have at most %d characters', $config->comments->maxLength)); return $text; } public function getText() { return TextHelper::parseMarkdown($this->text); } }