public function reset() { $this->content = ''; $this->indentationLevel = 0; return $this; }
/** * @param AbstractModel $model * @return string */ public function generate(AbstractModel $model) { $this->writer->reset(); $builder = $this->factory->getBuilder($model); $builder->build($model); return $this->writer->getContent(); }