original_string: public function addField($type, $mandatory, $defaultValue = '', $name = '')
      {
          $this->fields[$type] = array(
              'name' => $name,
              'mandatory' => $mandatory,
              'defaultValue' => $defaultValue,
          );
      }
code: public function addField($type, $mandatory, $defaultValue = '', $name = '')
      {
          $this->fields[$type] = array(
              'name' => $name,
              'mandatory' => $mandatory,
              'defaultValue' => $defaultValue,
          );
      }
code_tokens: public function addField ( $ type , $ mandatory , $ defaultValue = '' , $ name = '' ) { $ this -> fields [ $ type ] = array ( 'name' => $ name , 'mandatory' => $ mandatory , 'defaultValue' => $ defaultValue , ) ; }
docstring: Define a new field of the payment page
  
  @param string $type the type of field
  can be: title, forename, surname, company, street, postcode,
  place, phone, country, email, date_of_birth, terms, custom_field_1,
  custom_field_2, custom_field_3, custom_field_4, custom_field_5
  @param boolean $mandatory TRUE if the field has to be filled out for payment
  @param string $defaultValue the default value. This value will be editable for the client.
  @param string $name the name of the field, (this is only available for the fields custom_field_\d
docstring_tokens: Define a new field of the payment page