Example #1
0
 /**
  * Create a dummy MongoId
  *
  * @param array $props - Theoretically, an array of properties used to
  *   create the new id. However, as MongoId instances have no properties,
  *   this is not used.
  *
  * @return MongoId - A new id with the value
  *   "000000000000000000000000".
  */
 public static function __set_state($props)
 {
     $id = new self('000000000000000000000000');
     foreach ($props as $propName => $value) {
         $id->{$propName} = $value;
     }
     $id->id = $id->assembleId();
     return $id;
 }