Пример #1
0
 public function getName()
 {
     $name = $this->reflection->getName();
     $inflector = new Inflector();
     $name = $inflector->tableize($name);
     return $name;
 }
Пример #2
0
 /**
  * @param IReflectionProperty $property
  *
  * @return string
  */
 public function writeValue(IReflectionProperty $property)
 {
     $value = '';
     if ($property->getDeclaringClass() && ($defaultProperties = $property->getDeclaringClass()->getDefaultProperties())) {
         if (!is_null($defaultProperties[$property->getName()])) {
             $value = ' = ' . $this->formatValue($defaultProperties[$property->getName()]);
         }
     }
     return $value;
 }
Пример #3
0
 /**
  * {@inheritdoc}
  */
 public function getName()
 {
     return $this->reflection->getName();
 }