Imbo\EventListener\ImageVariations\Database\MongoDB::__construct PHP Method

__construct() public method

Class constructor
public __construct ( array $params = null, MongoClient $client = null, MongoCollection $collection = null )
$params array Parameters for the driver
$client MongoClient MongoClient instance
$collection MongoCollection MongoCollection instance for the image variation collection
    public function __construct(array $params = null, MongoClient $client = null, MongoCollection $collection = null)
    {
        if ($params !== null) {
            $this->params = array_replace_recursive($this->params, $params);
        }
        if ($client !== null) {
            $this->mongoClient = $client;
        }
        if ($collection !== null) {
            $this->collection = $collection;
        }
    }