original_string: private function checkForPrimary(GeneratorField $field)
      {
          if ($field->name == $this->primaryKey) {
              $field->isPrimary = true;
              $field->isFillable = false;
              $field->isSearchable = false;
              $field->inIndex = false;
              $field->inForm = false;
          }
  
          return $field;
      }
code: private function checkForPrimary(GeneratorField $field)
      {
          if ($field->name == $this->primaryKey) {
              $field->isPrimary = true;
              $field->isFillable = false;
              $field->isSearchable = false;
              $field->inIndex = false;
              $field->inForm = false;
          }
  
          return $field;
      }
code_tokens: private function checkForPrimary ( GeneratorField $ field ) { if ( $ field -> name == $ this -> primaryKey ) { $ field -> isPrimary = true ; $ field -> isFillable = false ; $ field -> isSearchable = false ; $ field -> inIndex = false ; $ field -> inForm = false ; } return $ field ; }
docstring: Check if key is primary key and sets field options.
  
  @param GeneratorField $field
  
  @return GeneratorField
docstring_tokens: Check if key is primary key and sets field options .