PHP Class Eloquent\Phony\Sequencer\Sequencer

Exibir arquivo Open project: eloquent/phony Class Usage Examples

Public Methods

Method Description
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.

Method Details

get() public method

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

next() public method

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

reset() public method

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

sequence() public static method

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

set() public method

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