original_string: public function addDependencyPackage($name, $channel, $minVersion, $maxVersion, $files = array())
      {
          $parent = $this->_packageXml->dependencies;
          $parent = $this->_getNode('required', $parent);
          $parent = $parent->addChild('package');
          $parent->addChild('name', $name);
          $parent->addChild('channel', $channel);
          $parent->addChild('min', $minVersion);
          $parent->addChild('max', $maxVersion);
          if(count($files)) {
              $parent = $parent->addChild('files');
              foreach($files as $row) {
                  if(!empty($row['target']) && !empty($row['path'])) {
                      $node = $parent->addChild("file");
                      $node["target"] = $row['target'];
                      $node["path"] =  $row['path'];
  
                  }
              }
          }
          return $this;
      }
code: public function addDependencyPackage($name, $channel, $minVersion, $maxVersion, $files = array())
      {
          $parent = $this->_packageXml->dependencies;
          $parent = $this->_getNode('required', $parent);
          $parent = $parent->addChild('package');
          $parent->addChild('name', $name);
          $parent->addChild('channel', $channel);
          $parent->addChild('min', $minVersion);
          $parent->addChild('max', $maxVersion);
          if(count($files)) {
              $parent = $parent->addChild('files');
              foreach($files as $row) {
                  if(!empty($row['target']) && !empty($row['path'])) {
                      $node = $parent->addChild("file");
                      $node["target"] = $row['target'];
                      $node["path"] =  $row['path'];
  
                  }
              }
          }
          return $this;
      }
code_tokens: public function addDependencyPackage ( $ name , $ channel , $ minVersion , $ maxVersion , $ files = array ( ) ) { $ parent = $ this -> _packageXml -> dependencies ; $ parent = $ this -> _getNode ( 'required' , $ parent ) ; $ parent = $ parent -> addChild ( 'package' ) ; $ parent -> addChild ( 'name' , $ name ) ; $ parent -> addChild ( 'channel' , $ channel ) ; $ parent -> addChild ( 'min' , $ minVersion ) ; $ parent -> addChild ( 'max' , $ maxVersion ) ; if ( count ( $ files ) ) { $ parent = $ parent -> addChild ( 'files' ) ; foreach ( $ files as $ row ) { if ( ! empty ( $ row [ 'target' ] ) && ! empty ( $ row [ 'path' ] ) ) { $ node = $ parent -> addChild ( "file" ) ; $ node [ "target" ] = $ row [ 'target' ] ; $ node [ "path" ] = $ row [ 'path' ] ; } } } return $ this ; }
docstring: Add package to dependency packages.
  
  @param string $package
  @param string $channel
  @param string $minVersion
  @param string $maxVersion
  @return Mage_Connect_Package
docstring_tokens: Add package to dependency packages .