original_string: public function setHelpers($helpers)
      {
          if (!is_array($helpers) && !$helpers instanceof Traversable) {
              throw new Mustache_Exception_InvalidArgumentException('setHelpers expects an array of helpers');
          }
  
          $this->getHelpers()->clear();
  
          foreach ($helpers as $name => $helper) {
              $this->addHelper($name, $helper);
          }
      }
code: public function setHelpers($helpers)
      {
          if (!is_array($helpers) && !$helpers instanceof Traversable) {
              throw new Mustache_Exception_InvalidArgumentException('setHelpers expects an array of helpers');
          }
  
          $this->getHelpers()->clear();
  
          foreach ($helpers as $name => $helper) {
              $this->addHelper($name, $helper);
          }
      }
code_tokens: public function setHelpers ( $ helpers ) { if ( ! is_array ( $ helpers ) && ! $ helpers instanceof Traversable ) { throw new Mustache_Exception_InvalidArgumentException ( 'setHelpers expects an array of helpers' ) ; } $ this -> getHelpers ( ) -> clear ( ) ; foreach ( $ helpers as $ name => $ helper ) { $ this -> addHelper ( $ name , $ helper ) ; } }
docstring: Set an array of Mustache helpers.
  
  An array of 'helpers'. Helpers can be global variables or objects, closures (e.g. for higher order sections), or
  any other valid Mustache context value. They will be prepended to the context stack, so they will be available in
  any template loaded by this Mustache instance.
  
  @throws Mustache_Exception_InvalidArgumentException if $helpers is not an array or Traversable
  
  @param array|Traversable $helpers
docstring_tokens: Set an array of Mustache helpers .