original_string: public function _set_gstate($gstate_options)
      {
          if (($gstate = array_search($gstate_options, $this->_gstates)) === false) {
              $gstate = $this->_pdf->create_gstate($gstate_options);
              $this->_gstates[$gstate] = $gstate_options;
          }
  
          return $this->_pdf->set_gstate($gstate);
      }
code: public function _set_gstate($gstate_options)
      {
          if (($gstate = array_search($gstate_options, $this->_gstates)) === false) {
              $gstate = $this->_pdf->create_gstate($gstate_options);
              $this->_gstates[$gstate] = $gstate_options;
          }
  
          return $this->_pdf->set_gstate($gstate);
      }
code_tokens: public function _set_gstate ( $ gstate_options ) { if ( ( $ gstate = array_search ( $ gstate_options , $ this -> _gstates ) ) === false ) { $ gstate = $ this -> _pdf -> create_gstate ( $ gstate_options ) ; $ this -> _gstates [ $ gstate ] = $ gstate_options ; } return $ this -> _pdf -> set_gstate ( $ gstate ) ; }
docstring: Sets the gstate
  
  @param $gstate_options
  @return int
docstring_tokens: Sets the gstate