/** * @param string $name * @return MarkedContent */ public function extractContent($name) { $content = $this->getContent(); $extracted = $this->matcher->extractRange($name, $name, $name, $content); $this->setContent($content); $content = new MarkedContent($extracted, $this->matcher); $content->bindTo($name, $this); return $content; }
public function finish() { if ($this->currentIteration) { $this->addContent($this->currentIteration); $this->currentIteration = null; } $this->baseContent->getBindedTo()->assign([$this->baseContent->getBindedMark() => $this]); $this->clearContents(); }