{ $this->storages =
$storages instanceof \Traversable ?
iterator_to_array($storages) :
$storages;
} public function getStorage(?string
$storage = null
): AbstractIncrementStorage
{ if ($storage === null
) { $storage =
$this->configuredStorage;
} if (!
isset($this->storages
[$storage])) { throw new IncrementStorageNotFoundException($storage,
array_keys($this->storages
));
} return $this->storages
[$storage];
} public function migrate(string
$from, string
$to): void
{ $fromStorage =
$this->
getStorage($from);
$toStorage =
$this->
getStorage($to);
foreach ($fromStorage->
list() as $numberRangeId =>
$state) {