src/bbn/parsers/doc.php
public function set_mode(string $mode){
    if ( !empty($mode) && in_array($mode, $this->modes) ){
      $this->mode = $mode;
      return $this;
    }
    die(_('Error: mode not allowed.'));
  }
public function set_mode(string $mode){
    if ( !empty($mode) && in_array($mode, $this->modes) ){
      $this->mode = $mode;
      return $this;
    }
    die(_('Error: mode not allowed.'));
  }
public function set_mode ( string $ mode ) { if ( ! empty ( $ mode ) && in_array ( $ mode , $ this -> modes ) ) { $ this -> mode = $ mode ; return $ this ; } die ( _ ( 'Error: mode not allowed.' ) ) ; }
Sets the mode

@param string $mode The mode to set
@return \bbn\parsers\doc
Sets the mode