gossi\codegen\generator\utils\Writer::getContent PHP Метод

getContent() публичный Метод

public getContent ( )
    public function getContent()
    {
        return $this->content;
    }

Usage Example

Пример #1
0
 /**
  * @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();
 }