original_string: public function addField($name, FormField $field, $tab = null)
      {
          if (!$tab) {
              $tab = $this->defaultTab;
          }
  
          $this->fields[$tab][$name] = $field;
      }
code: public function addField($name, FormField $field, $tab = null)
      {
          if (!$tab) {
              $tab = $this->defaultTab;
          }
  
          $this->fields[$tab][$name] = $field;
      }
code_tokens: public function addField ( $ name , FormField $ field , $ tab = null ) { if ( ! $ tab ) { $ tab = $ this -> defaultTab ; } $ this -> fields [ $ tab ] [ $ name ] = $ field ; }
docstring: Add a field to the collection of tabs.
  @param string    $name
  @param FormField $field
  @param string    $tab
docstring_tokens: Add a field to the collection of tabs .