public function writeCache(\Symforce\CoreBundle\PhpHelper\PhpWriter $writer) { $default_value = $this->getDefaultValue(); if ($this->_lazy) { $this->_class->getLazyWriter()->writeln('$this->' . $this->getName() . ' = ' . PhpHelper::compilePropertyValue($default_value) . ' ; '); $default_value = null; } $writer->write("\n"); if ($this->getDocblock()) { $writer->writeln($this->getDocblock()); } $writer->write($this->getVisibility())->write(' $')->write($this->getName()); if (null !== $default_value) { $writer->write(' = ')->write(PhpHelper::compilePropertyValue($default_value)); } $writer->writeln(";"); if ($this->_get) { $this->genGetter(); } }