Fixing README.md

This commit is contained in:
Ferdinand Kuhl 2023-02-18 21:10:01 +01:00
parent dba037df7f
commit 7c8f8ff75a

View file

@ -6,13 +6,13 @@ database of your choice.
Usage is quite simple also: Usage is quite simple also:
```php ```php
/** /**
* @param SequenceNumberGenerator $sequenceNumberGenerator * @param SequenceGenerator $sequenceGenerator
*/ */
public function __construct(SequenceNumberGenerator $sequenceNumberGenerator) public function __construct(SequenceGenerator $sequenceNumberGenerator)
{ {
$this->orderId = $sequenceNumberGenerator->getNextNumberFor($this); $this->orderId = $sequenceGenerator->getNextNumberFor($this);
} }
``` ```
`getNextNumberFor` allows you to give an object (which will be resolved to its FQCN) or a custom sequence name. `getNextNumberFor` allows you to give an object (which will be resolved to its FQCN) or a custom sequence name.