Exemplo n.º 1
0
 /**
  * @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;
 }
Exemplo n.º 2
0
 /**
  * @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;
 }