public function writeCache(\Symforce\AdminBundle\Compiler\Generator\PhpWriter $lazy_writer, \Symforce\AdminBundle\Compiler\Generator\PhpWriter $writer) { $default_value = $this->getDefaultValue(); if ($this->_lazy) { $lazy_writer->writeln('$this->' . $this->getName() . ' = ' . $this->_class->propertyEncode($default_value) . ' ; '); $default_value = null; } $writer->write("\n"); if ($this->getDocblock()) { $writer->writeln($this->getDocblock()); } $writer->write($this->getVisibility())->write(' $')->write($this->getName())->write(' = ')->write($this->_class->propertyEncode($default_value))->writeln(" ;"); if ($this->_get) { $this->genGetter(); } }