BSONArray
        
        extends ArrayObject
    
    
            
            in package
            
        
    
            
            implements
                            JsonSerializable,                             Serializable,                             Unserializable                    
    
    
        
            Model class for a BSON array.
The internal data will be filtered through array_values() during BSON serialization to ensure that it becomes a BSON array.
Interfaces, Classes, Traits and Enums
- JsonSerializable
 - Serializable
 - Unserializable
 
Table of Contents
- __clone() : mixed
 - Clone this BSONArray.
 - __set_state() : self
 - Factory method for var_export().
 - bsonSerialize() : array<string|int, mixed>
 - Serialize the array to BSON.
 - bsonUnserialize() : mixed
 - Unserialize the document to BSON.
 - jsonSerialize() : array<string|int, mixed>
 - Serialize the array to JSON.
 
Methods
__clone()
Clone this BSONArray.
    public
                    __clone() : mixed
    
    
    
        Return values
mixed —__set_state()
Factory method for var_export().
    public
            static        __set_state(array<string|int, mixed> $properties) : self
    
        Parameters
- $properties : array<string|int, mixed>
 
Tags
Return values
self —bsonSerialize()
Serialize the array to BSON.
    public
                    bsonSerialize() : array<string|int, mixed>
        The array data will be numerically reindexed to ensure that it is stored as a BSON array.
Tags
Return values
array<string|int, mixed> —bsonUnserialize()
Unserialize the document to BSON.
    public
                    bsonUnserialize(array<string|int, mixed> $data) : mixed
    
        Parameters
- $data : array<string|int, mixed>
 - 
                    
Array data
 
Tags
Return values
mixed —jsonSerialize()
Serialize the array to JSON.
    public
                    jsonSerialize() : array<string|int, mixed>
        The array data will be numerically reindexed to ensure that it is stored as a JSON array.