PHP 클래스 Eloquent\Phony\Sequencer\Sequencer

파일 보기 프로젝트 열기: eloquent/phony 1 사용 예제들

공개 메소드들

메소드 설명
get ( ) : integer Get the sequence number.
next ( ) : integer Increment and return the sequence number.
reset ( ) Reset the sequence number to its initial value.
sequence ( string $name ) : Sequencer Get a sequencer for a named sequence.
set ( integer $current ) Set the sequence number.

메소드 상세

get() 공개 메소드

Get the sequence number.
public get ( ) : integer
리턴 integer The sequence number.

next() 공개 메소드

Increment and return the sequence number.
public next ( ) : integer
리턴 integer The sequence number.

reset() 공개 메소드

Reset the sequence number to its initial value.
public reset ( )

sequence() 공개 정적인 메소드

Get a sequencer for a named sequence.
public static sequence ( string $name ) : Sequencer
$name string The sequence name.
리턴 Sequencer The sequencer.

set() 공개 메소드

Set the sequence number.
public set ( integer $current )
$current integer The sequence number.