original_string: public function get($oid, $preserveKeys = false) {
          if ($this->cache() && ( $rtn = $this->getCache()->load($oid) ) !== null) {
              return $rtn;
          }
  
          try {
              $this->_lastResult = $this->_session->get($oid, $preserveKeys);
          } catch (Exception $exc) {
              $this->close();
              throw new Exception("Erro '{$this->_session->getError()}' with execute GET OID ({$oid}): " . $exc->getMessage());
          }
  
          if ($this->_lastResult === false) {
              $this->close();
              throw new Exception('Could not perform walk for OID ' . $oid);
          }
  
          return $this->getCache()->save($oid, $this->parseSnmpValue($this->_lastResult));
      }
code: public function get($oid, $preserveKeys = false) {
          if ($this->cache() && ( $rtn = $this->getCache()->load($oid) ) !== null) {
              return $rtn;
          }
  
          try {
              $this->_lastResult = $this->_session->get($oid, $preserveKeys);
          } catch (Exception $exc) {
              $this->close();
              throw new Exception("Erro '{$this->_session->getError()}' with execute GET OID ({$oid}): " . $exc->getMessage());
          }
  
          if ($this->_lastResult === false) {
              $this->close();
              throw new Exception('Could not perform walk for OID ' . $oid);
          }
  
          return $this->getCache()->save($oid, $this->parseSnmpValue($this->_lastResult));
      }
code_tokens: public function get ( $ oid , $ preserveKeys = false ) { if ( $ this -> cache ( ) && ( $ rtn = $ this -> getCache ( ) -> load ( $ oid ) ) !== null ) { return $ rtn ; } try { $ this -> _lastResult = $ this -> _session -> get ( $ oid , $ preserveKeys ) ; } catch ( Exception $ exc ) { $ this -> close ( ) ; throw new Exception ( "Erro '{$this->_session->getError()}' with execute GET OID ({$oid}): " . $ exc -> getMessage ( ) ) ; } if ( $ this -> _lastResult === false ) { $ this -> close ( ) ; throw new Exception ( 'Could not perform walk for OID ' . $ oid ) ; } return $ this -> getCache ( ) -> save ( $ oid , $ this -> parseSnmpValue ( $ this -> _lastResult ) ) ; }
docstring: Get a single SNMP value
  
  @throws \Cityware\SnmpException On *any* SNMP error, warnings are supressed and a generic exception is thrown
  @param string $oid The OID to get
  @return mixed The resultant value
docstring_tokens: Get a single SNMP value