original_string: public function mode($mode)
      {
          $acceptable_modes = [-1, 0, 1, 2];
          if (!in_array($mode, $acceptable_modes)) {
              throw new JSONLibraryException('bad_mode_set');
          }
          $this->mode = $mode;
  
          return $this;
      }
code: public function mode($mode)
      {
          $acceptable_modes = [-1, 0, 1, 2];
          if (!in_array($mode, $acceptable_modes)) {
              throw new JSONLibraryException('bad_mode_set');
          }
          $this->mode = $mode;
  
          return $this;
      }
code_tokens: public function mode ( $ mode ) { $ acceptable_modes = [ - 1 , 0 , 1 , 2 ] ; if ( ! in_array ( $ mode , $ acceptable_modes ) ) { throw new JSONLibraryException ( 'bad_mode_set' ) ; } $ this -> mode = $ mode ; return $ this ; }
docstring: Set the mode fluently.
  
  @param int $mode
  
  @throws JSONLibraryException
  
  @return $this
docstring_tokens: Set the mode fluently .