original_string: public function addPostField($field, $value) {
          if (is_null($this->postData)) {
              $this->postData = array();
          }
  
          if (is_array($this->postData)) {
              $this->postData[$field] = (string) $value;
              return $this;
          } else {
              throw new LogicException('cannot set field for non array');
          }
      }
code: public function addPostField($field, $value) {
          if (is_null($this->postData)) {
              $this->postData = array();
          }
  
          if (is_array($this->postData)) {
              $this->postData[$field] = (string) $value;
              return $this;
          } else {
              throw new LogicException('cannot set field for non array');
          }
      }
code_tokens: public function addPostField ( $ field , $ value ) { if ( is_null ( $ this -> postData ) ) { $ this -> postData = array ( ) ; } if ( is_array ( $ this -> postData ) ) { $ this -> postData [ $ field ] = ( string ) $ value ; return $ this ; } else { throw new LogicException ( 'cannot set field for non array' ) ; } }
docstring: Add POST parameter
  @param string $field parameter name
  @param string $value parameter value
  @throw LogicException if post data is not array
  @return Request self
docstring_tokens: Add POST parameter