No description
Find a file
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
update structure of composer.json and update dependencies
2024-10-11 14:30:34 +02:00
.woodpecker Test only flow 7.3 with PHP 7 and 8 2023-02-18 21:15:17 +01:00
Classes revised code 2022-04-20 17:36:31 +02:00
Configuration/Testing remove unnecessary slash after %FLOW_PATH_*% 2021-10-11 12:23:44 +02:00
Migrations/Mysql add "declare(strict_types=1);" 2022-05-02 09:56:14 +02:00
Tests/Functional revised code 2022-04-20 17:36:31 +02:00
composer.json update structure of composer.json and update dependencies 2024-10-11 14:30:34 +02:00
License.txt add empty line at end of License.txt 2021-09-22 15:00:26 +02:00
README.md Adding Build-Badge 2023-02-18 21:32:19 +01:00

DigiComp.Sequence

Build status

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.