original_string: public function set_mode(string $mode){
      if ( !empty($mode) && in_array($mode, $this->modes) ){
        $this->mode = $mode;
        return $this;
      }
      die(_('Error: mode not allowed.'));
    }
code: public function set_mode(string $mode){
      if ( !empty($mode) && in_array($mode, $this->modes) ){
        $this->mode = $mode;
        return $this;
      }
      die(_('Error: mode not allowed.'));
    }
code_tokens: public function set_mode ( string $ mode ) { if ( ! empty ( $ mode ) && in_array ( $ mode , $ this -> modes ) ) { $ this -> mode = $ mode ; return $ this ; } die ( _ ( 'Error: mode not allowed.' ) ) ; }
docstring: Sets the mode
  
  @param string $mode The mode to set
  @return \bbn\parsers\doc
docstring_tokens: Sets the mode