original_string: public function add($element)
      {
          if (!$this->contains($element)) {
              $hashIndex = $this->hashIndex($element);
  
              $this->_items[$hashIndex] = $element;
              $this->_iterator = null;
              return true;
          } else {
              // element already exist
              return false;
          }
      }
code: public function add($element)
      {
          if (!$this->contains($element)) {
              $hashIndex = $this->hashIndex($element);
  
              $this->_items[$hashIndex] = $element;
              $this->_iterator = null;
              return true;
          } else {
              // element already exist
              return false;
          }
      }
code_tokens: public function add ( $ element ) { if ( ! $ this -> contains ( $ element ) ) { $ hashIndex = $ this -> hashIndex ( $ element ) ; $ this -> _items [ $ hashIndex ] = $ element ; $ this -> _iterator = null ; return true ; } else { // element already exist return false ; } }
docstring: add a element to the end of the collection
  
  @param    mixed      $element        element
  @return   bool
docstring_tokens: add a element to the end of the collection