<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/mongodb.bson.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'class.mongodb-bson-dbpointer.php',
    1 => 'MongoDB\\BSON\\DBPointer',
    2 => 'The MongoDB\\BSON\\DBPointer class',
  ),
  'up' => 
  array (
    0 => 'mongodb.bson.php',
    1 => 'MongoDB\\BSON',
  ),
  'prev' => 
  array (
    0 => 'mongodb-bson-utcdatetimeinterface.tostring.php',
    1 => 'MongoDB\\BSON\\UTCDateTimeInterface::__toString',
  ),
  'next' => 
  array (
    0 => 'mongodb-bson-dbpointer.construct.php',
    1 => 'MongoDB\\BSON\\DBPointer::__construct',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/mongodb/bson/dbpointer.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/class.mongodb-bson-dbpointer.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="class.mongodb-bson-dbpointer" class="reference">

 <h1 class="title">The MongoDB\BSON\DBPointer class</h1>
 

 <div class="partintro"><p class="verinfo">(mongodb &gt;=1.4.0)</p>


  <div class="section" id="mongodb-bson-dbpointer.intro">
   <h2 class="title">Introduction</h2>
   <p class="simpara">
    BSON type for the &quot;DBPointer&quot; type. This BSON type is deprecated, and this
    class can not be instantiated. It will be created from a BSON DBPointer
    type while converting BSON to PHP, and can also be converted back into
    BSON while storing documents in the database.
   </p>
  </div>


  <div class="section" id="mongodb-bson-dbpointer.synopsis">
   <h2 class="title">Class synopsis</h2>


   <div class="classsynopsis">
    <span class="ooclass"><strong class="classname"></strong></span>


    <div class="classsynopsisinfo">
     <span class="modifier">final</span>
     <span class="ooclass">
      <span class="modifier">class</span> <strong class="classname">MongoDB\BSON\DBPointer</strong>
     </span>

     <span class="oointerface"><span class="modifier">implements</span> 
       <a href="class.mongodb-bson-type.php" class="interfacename">MongoDB\BSON\Type</a></span><span class="oointerface">,  <a href="class.jsonserializable.php" class="interfacename">JsonSerializable</a></span><span class="oointerface">,  <a href="class.stringable.php" class="interfacename">Stringable</a></span> {</div>


    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Methods */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">final</span> <span class="modifier">private</span> <span class="methodname"><a href="mongodb-bson-dbpointer.construct.php" class="methodname">__construct</a></span>()</div>
<div class="methodsynopsis dc-description"><span class="modifier">final</span> <span class="modifier">public</span> <span class="methodname"><a href="mongodb-bson-dbpointer.jsonserialize.php" class="methodname">jsonSerialize</a></span>(): <span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">final</span> <span class="modifier">public</span> <span class="methodname"><a href="mongodb-bson-dbpointer.tostring.php" class="methodname">__toString</a></span>(): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

   }</div>


  </div>

  <div class="section">
   <h2 class="title">Changelog</h2>
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Version</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      
       <tr>
        <td>PECL mongodb 2.0.0</td>
        <td>
         <p class="para">
          This class no longer implements the
          <span class="interfacename"><a href="class.serializable.php" class="interfacename">Serializable</a></span> interface.
         </p>
        </td>
       </tr>


      <tr>
       <td>PECL mongodb 1.12.0</td>
       <td>
        Implements <span class="interfacename"><a href="class.stringable.php" class="interfacename">Stringable</a></span> for PHP 8.0+.
       </td>
      </tr>

     </tbody>
    
   </table>

  </div>

 </div>

 





















<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="mongodb-bson-dbpointer.construct.php">MongoDB\BSON\DBPointer::__construct</a> — Construct a new DBPointer (unused)</li><li><a href="mongodb-bson-dbpointer.jsonserialize.php">MongoDB\BSON\DBPointer::jsonSerialize</a> — Returns a representation that can be converted to JSON</li><li><a href="mongodb-bson-dbpointer.tostring.php">MongoDB\BSON\DBPointer::__toString</a> — Returns an empty string</li></ul>
</div>
<?php manual_footer($setup); ?>