Property | Type | Description | |
---|---|---|---|
$collection | string | Sequences collection name on MongoDB. Default 'mongolid_sequences'. | |
$connPool | Connections that are going to be used to interact with the database. |
Method | Description | |
---|---|---|
__construct ( |
||
getNextValue ( string $sequenceName ) : integer | Get next value for the sequence. |
Method | Description | |
---|---|---|
rawCollection ( ) : MongoDB\Collection | Get the actual MongoDB Collection object. |
public __construct ( |
||
$connPool | The connections that are going to be used to interact with the database. | |
$collection | string | The collection where the sequences will be stored. |
public getNextValue ( string $sequenceName ) : integer | ||
$sequenceName | string | Sequence identifier string. |
return | integer |
protected rawCollection ( ) : MongoDB\Collection | ||
return | MongoDB\Collection |
protected string $collection | ||
return | string |