original_string: static public function getOrDefault($object, $key, $default)
      {
          $oid = spl_object_hash($object);
  
          if (isset(static::$archive[$oid]) && (isset(static::$archive[$oid][$key]) || array_key_exists($key, static::$archive[$oid]))) {
              return static::$archive[$oid][$key];
          }
  
          return $default;
      }
code: static public function getOrDefault($object, $key, $default)
      {
          $oid = spl_object_hash($object);
  
          if (isset(static::$archive[$oid]) && (isset(static::$archive[$oid][$key]) || array_key_exists($key, static::$archive[$oid]))) {
              return static::$archive[$oid][$key];
          }
  
          return $default;
      }
code_tokens: static public function getOrDefault ( $ object , $ key , $ default ) { $ oid = spl_object_hash ( $ object ) ; if ( isset ( static :: $ archive [ $ oid ] ) && ( isset ( static :: $ archive [ $ oid ] [ $ key ] ) || array_key_exists ( $ key , static :: $ archive [ $ oid ] ) ) ) { return static :: $ archive [ $ oid ] [ $ key ] ; } return $ default ; }
docstring: Returns an object key or returns a default value otherwise.
  
  @param object $object  The object.
  @param string $key     The key.
  @param mixed  $default The value to return if the object key does not exist.
  
  @return mixed The object key value or the default value.
docstring_tokens: Returns an object key or returns a default value otherwise .