No description
Robin Krahnen
5e6f56552d
All checks were successful
ci/woodpecker/push/code-style Pipeline was successful
ci/woodpecker/push/functional-tests/1 Pipeline was successful
ci/woodpecker/tag/code-style Pipeline was successful
ci/woodpecker/push/functional-tests/2 Pipeline was successful
ci/woodpecker/push/functional-tests/3 Pipeline was successful
ci/woodpecker/push/functional-tests/4 Pipeline was successful
ci/woodpecker/tag/functional-tests/1 Pipeline was successful
ci/woodpecker/tag/functional-tests/2 Pipeline was successful
ci/woodpecker/tag/functional-tests/3 Pipeline was successful
ci/woodpecker/tag/functional-tests/4 Pipeline was successful
|
||
---|---|---|
.woodpecker | ||
Classes | ||
Configuration/Testing | ||
Migrations/Mysql | ||
Tests/Functional | ||
composer.json | ||
License.txt | ||
README.md |
DigiComp.Sequence
This is a very simple tool, helping in generation of gapless sequences. For this task it relies on key integrity of the database of your choice.
Usage is quite simple also:
/**
* @param SequenceGenerator $sequenceGenerator
*/
public function __construct(SequenceGenerator $sequenceNumberGenerator)
{
$this->orderId = $sequenceGenerator->getNextNumberFor($this);
}
getNextNumberFor
allows you to give an object (which will be resolved to its FQCN) or a custom sequence name.
The SequenceCommandController
helps you to set the last sequence number, in case of migrations or similar. See
./flow help sequence:setlastnumberfor
if interested.