original_string: public function add(MergeRuleInterface $rule, $name = null)
  	{
  	    if (!empty($name)) {
  	    	$this->_items[$name] = $rule;
  	    } else {
  	    	$this->_items[] = $rule;
  	    }
  
  	    return $this;
  	}
code: public function add(MergeRuleInterface $rule, $name = null)
  	{
  	    if (!empty($name)) {
  	    	$this->_items[$name] = $rule;
  	    } else {
  	    	$this->_items[] = $rule;
  	    }
  
  	    return $this;
  	}
code_tokens: public function add ( MergeRuleInterface $ rule , $ name = null ) { if ( ! empty ( $ name ) ) { $ this -> _items [ $ name ] = $ rule ; } else { $ this -> _items [ ] = $ rule ; } return $ this ; }
docstring: add a rule
  
  @param xml\MergeRuleInterface $rule
  @param string $name
docstring_tokens: add a rule