original_string: protected function _genericPut($key, $value, $type)
      {
          $listName = $this->_getCorrectList($type);
  
          if (is_array($key)) {
              $this->$listName = array_merge($this->$listName, $key);
          } else {
              $list       = &$this->$listName;
              $list[$key] = $value;
          }
  
          return $this;
      }
code: protected function _genericPut($key, $value, $type)
      {
          $listName = $this->_getCorrectList($type);
  
          if (is_array($key)) {
              $this->$listName = array_merge($this->$listName, $key);
          } else {
              $list       = &$this->$listName;
              $list[$key] = $value;
          }
  
          return $this;
      }
code_tokens: protected function _genericPut ( $ key , $ value , $ type ) { $ listName = $ this -> _getCorrectList ( $ type ) ; if ( is_array ( $ key ) ) { $ this -> $ listName = array_merge ( $ this -> $ listName , $ key ) ; } else { $ list = & $ this -> $ listName ; $ list [ $ key ] = $ value ; } return $ this ; }
docstring: common put data method for class data lists
  
  @param string|array $key
  @param mixed $value
  @param string $type
  @return $this
docstring_tokens: common put data method for class data lists