original_string: protected function addTextRule($type, $keyword, Closure $fn)
      {
          $this->rules['text'][] = array(
              'type' => $type,
              'keyword' => $keyword,
              'fn' => $fn,
          );
          return $this;
      }
code: protected function addTextRule($type, $keyword, Closure $fn)
      {
          $this->rules['text'][] = array(
              'type' => $type,
              'keyword' => $keyword,
              'fn' => $fn,
          );
          return $this;
      }
code_tokens: protected function addTextRule ( $ type , $ keyword , Closure $ fn ) { $ this -> rules [ 'text' ] [ ] = array ( 'type' => $ type , 'keyword' => $ keyword , 'fn' => $ fn , ) ; return $ this ; }
docstring: Adds a rule to handle user text input
  
  @param string $type
  @param string $keyword
  @param Closure $fn
  @return $this
docstring_tokens: Adds a rule to handle user text input