protected function setLabel(Field & $field, $name)
    {
        $field->addLabel($this->getLabelName($name), $this->tableName, true, $this->locale);

        return $this;
    }
protected function setLabel(Field & $field, $name)
    {
        $field->addLabel($this->getLabelName($name), $this->tableName, true, $this->locale);

        return $this;
    }
protected function setLabel ( Field & $ field , $ name ) { $ field -> addLabel ( $ this -> getLabelName ( $ name ) , $ this -> tableName , true , $ this -> locale ) ; return $ this ; }
Set the labels for a given field.

@param CrestApps\CodeGenerator\Models\Field $field
@param string $name

@return $this
Set the labels for a given field .