original_string: public function setPartials(array $partials = array())
      {
          if (!isset($this->partialsLoader)) {
              $this->partialsLoader = new Mustache_Loader_ArrayLoader();
          }
  
          if (!$this->partialsLoader instanceof Mustache_Loader_MutableLoader) {
              throw new Mustache_Exception_RuntimeException('Unable to set partials on an immutable Mustache Loader instance');
          }
  
          $this->partialsLoader->setTemplates($partials);
      }
code: public function setPartials(array $partials = array())
      {
          if (!isset($this->partialsLoader)) {
              $this->partialsLoader = new Mustache_Loader_ArrayLoader();
          }
  
          if (!$this->partialsLoader instanceof Mustache_Loader_MutableLoader) {
              throw new Mustache_Exception_RuntimeException('Unable to set partials on an immutable Mustache Loader instance');
          }
  
          $this->partialsLoader->setTemplates($partials);
      }
code_tokens: public function setPartials ( array $ partials = array ( ) ) { if ( ! isset ( $ this -> partialsLoader ) ) { $ this -> partialsLoader = new Mustache_Loader_ArrayLoader ( ) ; } if ( ! $ this -> partialsLoader instanceof Mustache_Loader_MutableLoader ) { throw new Mustache_Exception_RuntimeException ( 'Unable to set partials on an immutable Mustache Loader instance' ) ; } $ this -> partialsLoader -> setTemplates ( $ partials ) ; }
docstring: Set partials for the current partials Loader instance.
  
  @throws Mustache_Exception_RuntimeException If the current Loader instance is immutable
  
  @param array $partials (default: array())
docstring_tokens: Set partials for the current partials Loader instance .