PHP Class Eloquent\Phony\Sequencer\Sequencer

Afficher le fichier Open project: eloquent/phony Class Usage Examples

Méthodes publiques

Méthode 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 méthode

Get the sequence number.
public get ( ) : integer
Résultat integer The sequence number.

next() public méthode

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

reset() public méthode

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

sequence() public static méthode

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

set() public méthode

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