PHP 클래스 Mongolid\Util\SequenceService

파일 보기 프로젝트 열기: leroy-merlin-br/mongolid

보호된 프로퍼티들

프로퍼티 타입 설명
$collection string Sequences collection name on MongoDB. Default 'mongolid_sequences'.
$connPool Mongolid\Connection\Pool Connections that are going to be used to interact with the database.

공개 메소드들

메소드 설명
__construct ( Pool $connPool, string $collection = 'mongolid_sequences' )
getNextValue ( string $sequenceName ) : integer Get next value for the sequence.

보호된 메소드들

메소드 설명
rawCollection ( ) : MongoDB\Collection Get the actual MongoDB Collection object.

메소드 상세

__construct() 공개 메소드

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.

getNextValue() 공개 메소드

Get next value for the sequence.
public getNextValue ( string $sequenceName ) : integer
$sequenceName string Sequence identifier string.
리턴 integer

rawCollection() 보호된 메소드

Get the actual MongoDB Collection object.
protected rawCollection ( ) : MongoDB\Collection
리턴 MongoDB\Collection

프로퍼티 상세

$collection 보호되어 있는 프로퍼티

Sequences collection name on MongoDB. Default 'mongolid_sequences'.
protected string $collection
리턴 string

$connPool 보호되어 있는 프로퍼티

Connections that are going to be used to interact with the database.
protected Pool,Mongolid\Connection $connPool
리턴 Mongolid\Connection\Pool