ReadConcern
final class ReadConcern implements Serializable (View source)
MongoDB\Driver\ReadConcern controls the level of isolation for read operations for replica sets and replica set shards. This option requires the WiredTiger storage engine and MongoDB 3.2 or later.
Constants
| LINEARIZABLE
                                            Since: 1.2.0 | 
 | 
| LOCAL | 
 | 
| MAJORITY | 
 | 
| AVAILABLE
                                            Since: 1.4.0 | 
 | 
| SNAPSHOT
                                            Since: 1.11.0 | 
 | 
Methods
                    __construct(string|null $level = null)
        
                                            
                
            Construct immutable ReadConcern
                    static 
                
                
                    __set_state(array $properties)
        
                                            
                
            No description
                    string|null
                
                
                    getLevel()
        
                                            
                
            Returns the ReadConcern's "level" option
                    PackedArray
                
                
                    bsonSerialize()
        
                                            
                
            Returns an object for BSON serialization
                    bool
                
                
                    isDefault()
        
                                            
                
            Checks if this is the default read concern
Details
        
        final                    
    __construct(string|null $level = null)
        
    
    Construct immutable ReadConcern
        
                static            
    __set_state(array $properties)
        
    
    No description
        
        final                    string|null
    getLevel()
        
    
    Since: 1.0.0
            
    
    
            
        
                            
        
    
            Returns the ReadConcern's "level" option
        
        final                    PackedArray
    bsonSerialize()
        
    
    Since: 1.2.0
            
    
    
            
        
                            
        
    
            Returns an object for BSON serialization
        
        final                    bool
    isDefault()
        
    
    Since: 1.3.0
            
    
    
            
        
                            
        
    
            Checks if this is the default read concern