original_string: public function setEscaper($context, callable $escaper)
      {
          $this->escapers[$context] = $escaper;
          self::$escaperCache[$context] = [];
      }
code: public function setEscaper($context, callable $escaper)
      {
          $this->escapers[$context] = $escaper;
          self::$escaperCache[$context] = [];
      }
code_tokens: public function setEscaper ( $ context , callable $ escaper ) { $ this -> escapers [ $ context ] = $ escaper ; self :: $ escaperCache [ $ context ] = [ ] ; }
docstring: Adds an escaper for the given context.
  
  @param string   $context The escaper context (html, js, ...)
  @param callable $escaper A PHP callable
docstring_tokens: Adds an escaper for the given context .