toBSONType() public method

Converts this to the new BSON MaxKey type
public toBSONType ( ) : MongoDB\BSON\MaxKey
return MongoDB\BSON\MaxKey
 public function testConvert()
 {
     $MaxKey = new \MongoMaxKey();
     $this->assertInstanceOf('MongoDB\\BSON\\MaxKey', $MaxKey->toBSONType());
 }
 public function testConvert()
 {
     $maxKey = new \MongoMaxKey();
     $this->skipTestUnless($maxKey instanceof TypeInterface);
     $this->assertInstanceOf('MongoDB\\BSON\\MaxKey', $maxKey->toBSONType());
 }