setName() public method

Set database field name
public setName ( string $name )
$name string
 /**
  * Parse a ColumnAnnotation and return a Column object
  *
  * @param ColumnAnnotation $column_annotation
  * @param string           $name
  * @return Column
  */
 private function parseColumnAnnotation(ColumnAnnotation $column_annotation, $name)
 {
     $column = new Column($name);
     /** @noinspection PhpParamsInspection */
     $column->setType(FieldType::memberByValue($column_annotation->type));
     $column->setName($column_annotation->name);
     $column->setGetter($column_annotation->getter);
     $column->setSetter($column_annotation->setter);
     $column->setClassName($column_annotation->class_name);
     return $column;
 }