original_string: public function walkIPv4($oid) {
          if ($this->cache() && ( $rtn = $this->getCache()->load($oid) ) !== null) {
              return $rtn;
          }
  
          $this->_lastResult = $this->realWalk($oid);
  
          if ($this->_lastResult === false) {
              throw new Exception('Could not perform walk for OID ' . $oid);
          }
  
          $result = array();
  
          foreach ($this->_lastResult as $_oid => $value) {
              $oids = explode('.', $_oid);
  
              $len = count($oids);
  
              $result[$oids[$len - 4] . '.' . $oids[$len - 3] . '.' . $oids[$len - 2] . '.' . $oids[$len - 1]] = $this->parseSnmpValue($value);
          }
  
          return $this->getCache()->save($oid, $result);
      }
code: public function walkIPv4($oid) {
          if ($this->cache() && ( $rtn = $this->getCache()->load($oid) ) !== null) {
              return $rtn;
          }
  
          $this->_lastResult = $this->realWalk($oid);
  
          if ($this->_lastResult === false) {
              throw new Exception('Could not perform walk for OID ' . $oid);
          }
  
          $result = array();
  
          foreach ($this->_lastResult as $_oid => $value) {
              $oids = explode('.', $_oid);
  
              $len = count($oids);
  
              $result[$oids[$len - 4] . '.' . $oids[$len - 3] . '.' . $oids[$len - 2] . '.' . $oids[$len - 1]] = $this->parseSnmpValue($value);
          }
  
          return $this->getCache()->save($oid, $result);
      }
code_tokens: public function walkIPv4 ( $ oid ) { if ( $ this -> cache ( ) && ( $ rtn = $ this -> getCache ( ) -> load ( $ oid ) ) !== null ) { return $ rtn ; } $ this -> _lastResult = $ this -> realWalk ( $ oid ) ; if ( $ this -> _lastResult === false ) { throw new Exception ( 'Could not perform walk for OID ' . $ oid ) ; } $ result = array ( ) ; foreach ( $ this -> _lastResult as $ _oid => $ value ) { $ oids = explode ( '.' , $ _oid ) ; $ len = count ( $ oids ) ; $ result [ $ oids [ $ len - 4 ] . '.' . $ oids [ $ len - 3 ] . '.' . $ oids [ $ len - 2 ] . '.' . $ oids [ $ len - 1 ] ] = $ this -> parseSnmpValue ( $ value ) ; } return $ this -> getCache ( ) -> save ( $ oid , $ result ) ; }
docstring: Get indexed SNMP values where they are indexed by IPv4 addresses
  
  I.e. the following query with sample results:
  
  subOidWalk( '.1.3.6.1.2.1.15.3.1.1. )
  
  
  .1.3.6.1.2.1.15.3.1.1.10.20.30.4 = IpAddress: 192.168.10.10
  ...
  
  would yield an array:
  
  [10.20.30.4] => "192.168.10.10"
  ....
  
  @throws \Cityware\SnmpException On *any* SNMP error, warnings are supressed and a generic exception is thrown
  @param string $oid The OID to walk
  @return array The resultant values
docstring_tokens: Get indexed SNMP values where they are indexed by IPv4 addresses