Ejemplo n.º 1
0
 public function visitProperty(PhpProperty $property)
 {
     $this->writer->write($property->getVisibility() . ' ' . ($property->isStatic() ? 'static ' : '') . '$' . $property->getName());
     if ($property->hasDefaultValue()) {
         $this->writer->write(' = ' . var_export($property->getDefaultValue(), true));
     }
     $this->writer->writeln(';');
 }