izzum\statemachine\persistence\MongoDB::__construct PHP Method

__construct() public method

an existing mongoclient can also be set on this class (reuse a client accross your application)
public __construct ( string $dns = 'mongodb://localhost:27017', array $options = ["connect" => true], array $driver_options = [] )
$dns string the data source name. mongodb://[username:password@]host1[:port1][,host2[:port2:],...]
$options array server options (usable for authentication, replicasets etc)
$driver_options array php specifif driver options
    public function __construct($dns = 'mongodb://localhost:27017', $options = array("connect" => true), $driver_options = array())
    {
        $this->dns = $dns;
        $this->options = $options;
        $this->driver_options = $driver_options;
    }