protected function getPrimaryKeyName(Field $primaryField = null, $primaryKey = 'id')
    {
        return !is_null($primaryField) ? $primaryField->name : $primaryKey;
    }
protected function getPrimaryKeyName(Field $primaryField = null, $primaryKey = 'id')
    {
        return !is_null($primaryField) ? $primaryField->name : $primaryKey;
    }
protected function getPrimaryKeyName ( Field $ primaryField = null , $ primaryKey = 'id' ) { return ! is_null ( $ primaryField ) ? $ primaryField -> name : $ primaryKey ; }
Gets the correct primary key name.

@param CreatApps\CodeGenerator\Models\Field $primaryField
@param string $primaryKey

@return string
Gets the correct primary key name .