Mongolid\Util\SequenceService::__construct PHP Method

__construct() public method

public __construct ( Pool $connPool, string $collection = 'mongolid_sequences' )
$connPool Mongolid\Connection\Pool The connections that are going to be used to interact with the database.
$collection string The collection where the sequences will be stored.
    public function __construct(Pool $connPool, string $collection = 'mongolid_sequences')
    {
        $this->connPool = $connPool;
        $this->collection = $collection;
    }