Pheasant\Database\Mysqli\SequencePool::next PHP Method

next() public method

Returns the next integer in the sequence
public next ( $sequence )
    public function next($sequence)
    {
        // execute in transaction
        $results = $this->_connection->transaction(array($this, '_nextSequence'), strtoupper($sequence))->execute();
        return (int) $results[0];
    }