ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilTestReindexedSequencePositionMap.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
27 {
29  private array $sequencePositionMap = [];
30 
31  public function addPositionMapping(int $oldSequencePosition, int $newSequencePosition): void
32  {
33  $this->sequencePositionMap[$oldSequencePosition] = $newSequencePosition;
34  }
35 
36  public function getNewSequencePosition(int $oldSequencePosition): ?int
37  {
38  return $this->sequencePositionMap[$oldSequencePosition] ?? null;
39  }
40 }
addPositionMapping(int $oldSequencePosition, int $newSequencePosition)