Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
SequenceRegistry.php
Go to the documentation of this file.
1 <?php
8 
10 
15 {
19  private $registry;
20 
29  public function register($entityType, $sequence = null, $sequenceTable = null)
30  {
31  $this->registry[$entityType]['sequence'] = $sequence;
32  $this->registry[$entityType]['sequenceTable'] = $sequenceTable;
33  }
34 
41  public function retrieve($entityType)
42  {
43  if (isset($this->registry[$entityType])) {
44  return $this->registry[$entityType];
45  }
46  return false;
47  }
48 }