/** * @param string $longBio * * @return Author */ protected function setLongBio($longBio) { $compiler = MarkupCompilerFactory::getCompiler()->setMarkup($longBio); $contentsHtml = $compiler->getContentsHtml(); $this->longBio = $longBio; $this->longBioCompiled = $contentsHtml; return $this; }
/** * @param string $contents * * @return $this * @throws MarkupCompilerException */ public function setContents(string $contents) { $compiler = MarkupCompilerFactory::getCompiler()->setMarkup($contents); $contentsHtml = $compiler->getContentsHtml(); $this->contents = $contents; $this->contentsCompiled = $contentsHtml; return $this; }