1 | <?php |
||
35 | class ReverseSequenceGenerator implements GeneratorInterface |
||
36 | { |
||
37 | |||
38 | /** |
||
39 | * The registry processor instance used to generate the inversed entity IDs. |
||
40 | * |
||
41 | * @var \TechDivision\Import\Services\RegistryProcessorInterface |
||
42 | */ |
||
43 | private $registryProcessor; |
||
44 | |||
45 | /** |
||
46 | * Initializes the generator with the registry processor. |
||
47 | * |
||
48 | * @param \TechDivision\Import\Services\RegistryProcessorInterface $registryProcessor The registry processor instance |
||
49 | */ |
||
50 | public function __construct(RegistryProcessorInterface $registryProcessor) |
||
54 | |||
55 | /** |
||
56 | * Creates a new negative sequence for caching purposes. |
||
57 | * |
||
58 | * @param string $counterName The counter name that has to be lowered |
||
59 | * |
||
60 | * @return int The unique sequence |
||
61 | * @see \TechDivision\Import\Utils\Generators\GeneratorInterface::generate() |
||
62 | */ |
||
63 | public function generate(string $counterName = 'generic') |
||
67 | } |
||
68 |