original_string: public function addDecorator($decorator)
      {
          if (is_string($decorator)) {
              $class = "HTMLPurifier_DefinitionCache_Decorator_$decorator";
              $decorator = new $class;
          }
          $this->decorators[$decorator->name] = $decorator;
      }
code: public function addDecorator($decorator)
      {
          if (is_string($decorator)) {
              $class = "HTMLPurifier_DefinitionCache_Decorator_$decorator";
              $decorator = new $class;
          }
          $this->decorators[$decorator->name] = $decorator;
      }
code_tokens: public function addDecorator ( $ decorator ) { if ( is_string ( $ decorator ) ) { $ class = "HTMLPurifier_DefinitionCache_Decorator_$decorator" ; $ decorator = new $ class ; } $ this -> decorators [ $ decorator -> name ] = $ decorator ; }
docstring: Registers a decorator to add to all new cache objects
  @param HTMLPurifier_DefinitionCache_Decorator|string $decorator An instance or the name of a decorator
docstring_tokens: Registers a decorator to add to all new cache objects