Example #1
0
 /**
  * getObjectBody
  *
  * @param Writer $writer
  *
  * @return Writer
  */
 protected function writeObjectBody(WriterInterface $writer)
 {
     $this->writeConstants($writer);
     return parent::writeObjectBody($writer);
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 protected function writeObjectBody(WriterInterface $writer)
 {
     $this->writeTraits($writer, $resolver = $this->getImportResolver());
     $this->writeProperties($writer, $resolver);
     return parent::writeObjectBody($writer);
 }