original_string: public function unserialize($serialized)
      {
          $attributes = unserialize($serialized);
  
          $conn = Ioc::make(Pool::class)->getConnection();
          $db = $conn->defaultDatabase;
          $collectionObject = $conn->getRawConnection()->$db->{$attributes['collection']};
  
          foreach ($attributes as $key => $value) {
              $this->$key = $value;
          }
  
          $this->collection = $collectionObject;
      }
code: public function unserialize($serialized)
      {
          $attributes = unserialize($serialized);
  
          $conn = Ioc::make(Pool::class)->getConnection();
          $db = $conn->defaultDatabase;
          $collectionObject = $conn->getRawConnection()->$db->{$attributes['collection']};
  
          foreach ($attributes as $key => $value) {
              $this->$key = $value;
          }
  
          $this->collection = $collectionObject;
      }
code_tokens: public function unserialize ( $ serialized ) { $ attributes = unserialize ( $ serialized ) ; $ conn = Ioc :: make ( Pool :: class ) -> getConnection ( ) ; $ db = $ conn -> defaultDatabase ; $ collectionObject = $ conn -> getRawConnection ( ) -> $ db -> { $ attributes [ 'collection' ] } ; foreach ( $ attributes as $ key => $ value ) { $ this -> $ key = $ value ; } $ this -> collection = $ collectionObject ; }
docstring: Unserializes this object. Re-creating the database connection.
  
  @param mixed $serialized serialized cursor
docstring_tokens: Unserializes this object . Re - creating the database connection .